From 235046f7ad7eb19be51bcb580dbc78dc173cc57a Mon Sep 17 00:00:00 2001 From: Misa Date: Tue, 13 Apr 2021 14:44:28 -0700 Subject: [PATCH] Don't ditch frames when loading saves It seems like for whatever reason that the frames portion of save files is never read from, and always zeroed. Well, technically they get parsed but the result is immediately discarded afterwards. I see no reason to do this, so I'm removing these zeroes. --- desktop_version/src/Game.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/desktop_version/src/Game.cpp b/desktop_version/src/Game.cpp index 16013323..766d2069 100644 --- a/desktop_version/src/Game.cpp +++ b/desktop_version/src/Game.cpp @@ -4911,7 +4911,6 @@ void Game::readmaingamesave(tinyxml2::XMLDocument& doc) else if (SDL_strcmp(pKey, "frames") == 0) { frames = help.Int(pText); - frames = 0; } else if (SDL_strcmp(pKey, "seconds") == 0) { @@ -5106,7 +5105,6 @@ void Game::customloadquick(std::string savfile) else if (SDL_strcmp(pKey, "frames") == 0) { frames = help.Int(pText); - frames = 0; } else if (SDL_strcmp(pKey, "seconds") == 0) {