about summary refs log tree commit diff stats
path: root/game_data.cpp
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-05-02 17:26:46 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-05-02 17:26:46 -0400
commit09d67fbad9df92caf2251d36b4abd7979fd27126 (patch)
tree287be3da3588f1fb991ffd3212fdfd53a703d6ab /game_data.cpp
parent116ba412079ddf647d19a54d09eb61e67a2f9aac (diff)
downloadlingo-ap-tracker-09d67fbad9df92caf2251d36b4abd7979fd27126.tar.gz
lingo-ap-tracker-09d67fbad9df92caf2251d36b4abd7979fd27126.tar.bz2
lingo-ap-tracker-09d67fbad9df92caf2251d36b4abd7979fd27126.zip
Map + popups reflect checked locations
Diffstat (limited to 'game_data.cpp')
-rw-r--r--game_data.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/game_data.cpp b/game_data.cpp index 54a01ed..af5f665 100644 --- a/game_data.cpp +++ b/game_data.cpp
@@ -252,7 +252,10 @@ GameData::GameData() {
252 MapArea &map_area = map_areas_[area_id]; 252 MapArea &map_area = map_areas_[area_id];
253 // room field should be the original room ID 253 // room field should be the original room ID
254 map_area.locations.push_back( 254 map_area.locations.push_back(
255 {.name = panel.name, .room = panel.room, .panels = {panel.id}}); 255 {.name = panel.name,
256 .ap_location_name = room_name + " - " + panel.name,
257 .room = panel.room,
258 .panels = {panel.id}});
256 } 259 }
257 } 260 }
258 261
@@ -278,8 +281,10 @@ GameData::GameData() {
278 int area_id = AddOrGetArea(area_name); 281 int area_id = AddOrGetArea(area_name);
279 MapArea &map_area = map_areas_[area_id]; 282 MapArea &map_area = map_areas_[area_id];
280 // room field should be the original room ID 283 // room field should be the original room ID
281 map_area.locations.push_back( 284 map_area.locations.push_back({.name = section_name,
282 {.name = section_name, .room = door.room, .panels = door.panels}); 285 .ap_location_name = door.location_name,
286 .room = door.room,
287 .panels = door.panels});
283 } 288 }
284 } 289 }
285} 290}