From 636d23430bddf8295afeb55381db8d1f65cf4b38 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Wed, 15 May 2024 13:27:33 -0400 Subject: Fixed art gallery painting --- assets/subway.yaml | 3 ++- src/game_data.cpp | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) 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 @@ - blueman_starting - pos: [60, 970] special: early_color_hallways -- pos: [402, 1071] +- pos: [402, 1012] room: Outside The Undeterred door: Green Painting paintings: @@ -975,6 +975,7 @@ paintings: - smile_painting_3 - flower_painting_2 + - scenery_painting_0a - map_painting - fruitbowl_painting4 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) { } int GD_GetSubwayItemForPainting(const std::string& painting_id) { +#ifndef NDEBUG + if (!GetState().subway_item_by_painting_.count(painting_id)) { + wxLogError("No subway item for painting %s", painting_id); + } +#endif return GetState().subway_item_by_painting_.at(painting_id); } -- cgit 1.4.1