about summary refs log tree commit diff stats
path: root/src/game_data.cpp
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2024-07-16 00:47:11 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2024-07-16 00:47:11 -0400
commit52bc9fdf99d452c592e174acd9cb174ec00e19d7 (patch)
treef859724e8710fa30d2bd90e82614cc04f058f870 /src/game_data.cpp
parentbbf47da879b816167c8f3bed716570effa4b52bb (diff)
downloadlingo-ap-tracker-52bc9fdf99d452c592e174acd9cb174ec00e19d7.tar.gz
lingo-ap-tracker-52bc9fdf99d452c592e174acd9cb174ec00e19d7.tar.bz2
lingo-ap-tracker-52bc9fdf99d452c592e174acd9cb174ec00e19d7.zip
Added path tracking for debugging
Diffstat (limited to 'src/game_data.cpp')
-rw-r--r--src/game_data.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game_data.cpp b/src/game_data.cpp index e75170e..4c0104f 100644 --- a/src/game_data.cpp +++ b/src/game_data.cpp
@@ -109,6 +109,7 @@ struct GameData {
109 auto process_single_entrance = 109 auto process_single_entrance =
110 [this, room_id, from_room_id](const YAML::Node &option) { 110 [this, room_id, from_room_id](const YAML::Node &option) {
111 Exit exit_obj; 111 Exit exit_obj;
112 exit_obj.source_room = from_room_id;
112 exit_obj.destination_room = room_id; 113 exit_obj.destination_room = room_id;
113 114
114 if (option["door"]) { 115 if (option["door"]) {
@@ -143,7 +144,7 @@ struct GameData {
143 switch (entrance_it.second.Type()) { 144 switch (entrance_it.second.Type()) {
144 case YAML::NodeType::Scalar: { 145 case YAML::NodeType::Scalar: {
145 // This is just "true". 146 // This is just "true".
146 rooms_[from_room_id].exits.push_back({.destination_room = room_id}); 147 rooms_[from_room_id].exits.push_back({.source_room = from_room_id, .destination_room = room_id});
147 break; 148 break;
148 } 149 }
149 case YAML::NodeType::Map: { 150 case YAML::NodeType::Map: {