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 ec8d8f5..0786edb 100644 --- a/src/game_data.cpp +++ b/src/game_data.cpp | |||
@@ -267,6 +267,11 @@ struct GameData { | |||
267 | panel_it.second["location_name"].as<std::string>(); | 267 | panel_it.second["location_name"].as<std::string>(); |
268 | } | 268 | } |
269 | 269 | ||
270 | if (panel_it.second["id"]) { | ||
271 | panels_[panel_id].nodepath = | ||
272 | panel_it.second["id"].as<std::string>(); | ||
273 | } | ||
274 | |||
270 | if (panel_it.second["hunt"]) { | 275 | if (panel_it.second["hunt"]) { |
271 | panels_[panel_id].hunt = panel_it.second["hunt"].as<bool>(); | 276 | panels_[panel_id].hunt = panel_it.second["hunt"].as<bool>(); |
272 | } | 277 | } |
@@ -639,7 +644,8 @@ struct GameData { | |||
639 | .room = panel.room, | 644 | .room = panel.room, |
640 | .panels = {panel.id}, | 645 | .panels = {panel.id}, |
641 | .classification = classification, | 646 | .classification = classification, |
642 | .hunt = panel.hunt}); | 647 | .hunt = panel.hunt, |
648 | .panel = true}); | ||
643 | locations_by_name[location_name] = {area_id, | 649 | locations_by_name[location_name] = {area_id, |
644 | map_area.locations.size() - 1}; | 650 | map_area.locations.size() - 1}; |
645 | } | 651 | } |
@@ -692,6 +698,7 @@ struct GameData { | |||
692 | for (const Location &location : map_area.locations) { | 698 | for (const Location &location : map_area.locations) { |
693 | map_area.classification |= location.classification; | 699 | map_area.classification |= location.classification; |
694 | map_area.hunt |= location.hunt; | 700 | map_area.hunt |= location.hunt; |
701 | map_area.panel |= location.panel; | ||
695 | } | 702 | } |
696 | } | 703 | } |
697 | 704 | ||