diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2025-03-07 13:38:07 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2025-03-07 13:38:07 -0500 |
commit | c3849f011be0ecfbf359a163e5e2423272c0c3d0 (patch) | |
tree | 7d54c43869558e2939f1bbe9b3c5d7703a61c4b6 /src/game_data.cpp | |
parent | 9b7099d98b87f3a3cf5448c4ee9015e7e2a27684 (diff) | |
download | lingo-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.cpp | 7 |
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; |