about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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