From 61adffe6ebb8f041d1443feeacca42c0fbfa3ff0 Mon Sep 17 00:00:00 2001 From: Dav999 Date: Wed, 13 Sep 2023 16:24:17 +0200 Subject: [PATCH] Remove finalmode from struct Summary It's unused (other than some map.finalmode assignments which should not be there) and we don't need it either. If we do, we can always readd it. --- desktop_version/src/Game.cpp | 6 ------ desktop_version/src/Game.h | 1 - 2 files changed, 7 deletions(-) diff --git a/desktop_version/src/Game.cpp b/desktop_version/src/Game.cpp index 9735af93..b2e39aa7 100644 --- a/desktop_version/src/Game.cpp +++ b/desktop_version/src/Game.cpp @@ -5645,10 +5645,6 @@ static void loadthissummary( { summary->trinkets = help.Int(pText); } - else if (SDL_strcmp(pKey, "finalmode") == 0) - { - map.finalmode = help.Int(pText); - } LOAD_ARRAY_RENAME(crewstats, summary->crewstats) } @@ -5675,7 +5671,6 @@ void Game::loadsummary(void) summary.minutes, summary.seconds ); - map.finalmode = summary.finalmode; tele_currentarea = map.currentarea(summary.saverx, summary.savery); SDL_memcpy(tele_crewstats, summary.crewstats, sizeof(tele_crewstats)); tele_trinkets = summary.trinkets; @@ -5698,7 +5693,6 @@ void Game::loadsummary(void) summary.minutes, summary.seconds ); - map.finalmode = summary.finalmode; quick_currentarea = map.currentarea(summary.saverx, summary.savery); SDL_memcpy(quick_crewstats, summary.crewstats, sizeof(quick_crewstats)); quick_trinkets = summary.trinkets; diff --git a/desktop_version/src/Game.h b/desktop_version/src/Game.h index 10a3edaf..af5776f4 100644 --- a/desktop_version/src/Game.h +++ b/desktop_version/src/Game.h @@ -301,7 +301,6 @@ public: int saverx; int savery; int trinkets; - bool finalmode; bool crewstats[numcrew]; };