about summary refs log tree commit diff stats
path: root/src/game_data.cpp
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-05-21 13:16:25 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-05-21 13:16:25 -0400
commitbb12ecd88fe16e4009b0d8927c5653d72972e284 (patch)
tree69e2e23b43605ffa24fe2c64251a1fab8ff0dfd7 /src/game_data.cpp
parent0e69963e29fd7e3f9e4bdf876246c400d2f07f19 (diff)
downloadlingo-ap-tracker-bb12ecd88fe16e4009b0d8927c5653d72972e284.tar.gz
lingo-ap-tracker-bb12ecd88fe16e4009b0d8927c5653d72972e284.tar.bz2
lingo-ap-tracker-bb12ecd88fe16e4009b0d8927c5653d72972e284.zip
Show list of achievements on the side
Diffstat (limited to 'src/game_data.cpp')
-rw-r--r--src/game_data.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/game_data.cpp b/src/game_data.cpp index f21bc3d..351f515 100644 --- a/src/game_data.cpp +++ b/src/game_data.cpp
@@ -177,11 +177,10 @@ struct GameData {
177 } 177 }
178 178
179 if (panel_it.second["achievement"]) { 179 if (panel_it.second["achievement"]) {
180 panel_obj.achievement = panel_it.second["achievement"].as<bool>(); 180 panel_obj.achievement = true;
181 panel_obj.achievement_name = panel_it.second["achievement"].as<std::string>();
181 182
182 if (panel_obj.achievement) { 183 achievement_panels_.push_back(panel_id);
183 achievement_panels_.push_back(panel_id);
184 }
185 } 184 }
186 185
187 if (panel_it.second["exclude_reduce"]) { 186 if (panel_it.second["exclude_reduce"]) {