about summary refs log tree commit diff stats
path: root/src/game_data.cpp
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2025-03-07 13:38:07 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2025-03-07 13:38:07 -0500
commitc3849f011be0ecfbf359a163e5e2423272c0c3d0 (patch)
tree7d54c43869558e2939f1bbe9b3c5d7703a61c4b6 /src/game_data.cpp
parent9b7099d98b87f3a3cf5448c4ee9015e7e2a27684 (diff)
downloadlingo-ap-tracker-c3849f011be0ecfbf359a163e5e2423272c0c3d0.tar.gz
lingo-ap-tracker-c3849f011be0ecfbf359a163e5e2423272c0c3d0.tar.bz2
lingo-ap-tracker-c3849f011be0ecfbf359a163e5e2423272c0c3d0.zip
Display friendly painting names
Diffstat (limited to 'src/game_data.cpp')
-rw-r--r--src/game_data.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/game_data.cpp b/src/game_data.cpp index 0ac77af..a3ac27d 100644 --- a/src/game_data.cpp +++ b/src/game_data.cpp
@@ -490,6 +490,13 @@ struct GameData {
490 PaintingExit &painting_exit = paintings_[painting_id]; 490 PaintingExit &painting_exit = paintings_[painting_id];
491 painting_exit.room = room_id; 491 painting_exit.room = room_id;
492 492
493 if (painting["display_name"]) {
494 painting_exit.display_name =
495 painting["display_name"].as<std::string>();
496 } else {
497 painting_exit.display_name = painting_exit.internal_id;
498 }
499
493 if ((!painting["exit_only"] || !painting["exit_only"].as<bool>()) && 500 if ((!painting["exit_only"] || !painting["exit_only"].as<bool>()) &&
494 (!painting["disable"] || !painting["disable"].as<bool>())) { 501 (!painting["disable"] || !painting["disable"].as<bool>())) {
495 painting_exit.entrance = true; 502 painting_exit.entrance = true;