diff options
Diffstat (limited to 'src/game_data.cpp')
-rw-r--r-- | src/game_data.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/game_data.cpp b/src/game_data.cpp index 4c0104f..b8e1386 100644 --- a/src/game_data.cpp +++ b/src/game_data.cpp | |||
@@ -265,6 +265,11 @@ struct GameData { | |||
265 | panel_it.second["location_name"].as<std::string>(); | 265 | panel_it.second["location_name"].as<std::string>(); |
266 | } | 266 | } |
267 | 267 | ||
268 | if (panel_it.second["id"]) { | ||
269 | panels_[panel_id].nodepath = | ||
270 | panel_it.second["id"].as<std::string>(); | ||
271 | } | ||
272 | |||
268 | if (panel_it.second["hunt"]) { | 273 | if (panel_it.second["hunt"]) { |
269 | panels_[panel_id].hunt = panel_it.second["hunt"].as<bool>(); | 274 | panels_[panel_id].hunt = panel_it.second["hunt"].as<bool>(); |
270 | } | 275 | } |
@@ -564,7 +569,8 @@ struct GameData { | |||
564 | .room = panel.room, | 569 | .room = panel.room, |
565 | .panels = {panel.id}, | 570 | .panels = {panel.id}, |
566 | .classification = classification, | 571 | .classification = classification, |
567 | .hunt = panel.hunt}); | 572 | .hunt = panel.hunt, |
573 | .panel = true}); | ||
568 | locations_by_name[location_name] = {area_id, | 574 | locations_by_name[location_name] = {area_id, |
569 | map_area.locations.size() - 1}; | 575 | map_area.locations.size() - 1}; |
570 | } | 576 | } |
@@ -617,6 +623,7 @@ struct GameData { | |||
617 | for (const Location &location : map_area.locations) { | 623 | for (const Location &location : map_area.locations) { |
618 | map_area.classification |= location.classification; | 624 | map_area.classification |= location.classification; |
619 | map_area.hunt |= location.hunt; | 625 | map_area.hunt |= location.hunt; |
626 | map_area.panel |= location.panel; | ||
620 | } | 627 | } |
621 | } | 628 | } |
622 | 629 | ||