about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2024-05-15 13:27:33 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2024-05-15 13:27:33 -0400
commit636d23430bddf8295afeb55381db8d1f65cf4b38 (patch)
treef7fd032833f7f3a172652be69c13d2e0fa743dea
parent0c7cb22f3da56fde00f981f9fefb971c541bc8f1 (diff)
downloadlingo-ap-tracker-636d23430bddf8295afeb55381db8d1f65cf4b38.tar.gz
lingo-ap-tracker-636d23430bddf8295afeb55381db8d1f65cf4b38.tar.bz2
lingo-ap-tracker-636d23430bddf8295afeb55381db8d1f65cf4b38.zip
Fixed art gallery painting
-rw-r--r--assets/subway.yaml3
-rw-r--r--src/game_data.cpp5
2 files changed, 7 insertions, 1 deletions
diff --git a/assets/subway.yaml b/assets/subway.yaml index 704f120..8f13f09 100644 --- a/assets/subway.yaml +++ b/assets/subway.yaml
@@ -688,7 +688,7 @@
688 - blueman_starting 688 - blueman_starting
689- pos: [60, 970] 689- pos: [60, 970]
690 special: early_color_hallways 690 special: early_color_hallways
691- pos: [402, 1071] 691- pos: [402, 1012]
692 room: Outside The Undeterred 692 room: Outside The Undeterred
693 door: Green Painting 693 door: Green Painting
694 paintings: 694 paintings:
@@ -975,6 +975,7 @@
975 paintings: 975 paintings:
976 - smile_painting_3 976 - smile_painting_3
977 - flower_painting_2 977 - flower_painting_2
978 - scenery_painting_0a
978 - map_painting 979 - map_painting
979 - fruitbowl_painting4 980 - fruitbowl_painting4
980 tags: 981 tags:
diff --git a/src/game_data.cpp b/src/game_data.cpp index de47ba4..7c9564b 100644 --- a/src/game_data.cpp +++ b/src/game_data.cpp
@@ -783,6 +783,11 @@ const SubwayItem &GD_GetSubwayItem(int id) {
783} 783}
784 784
785int GD_GetSubwayItemForPainting(const std::string& painting_id) { 785int GD_GetSubwayItemForPainting(const std::string& painting_id) {
786#ifndef NDEBUG
787 if (!GetState().subway_item_by_painting_.count(painting_id)) {
788 wxLogError("No subway item for painting %s", painting_id);
789 }
790#endif
786 return GetState().subway_item_by_painting_.at(painting_id); 791 return GetState().subway_item_by_painting_.at(painting_id);
787} 792}
788 793