1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 10:09:43 +01:00

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.
This commit is contained in:
Misa 2021-04-13 14:44:28 -07:00 committed by Ethan Lee
parent ea2ecc81b1
commit 235046f7ad

View file

@ -4911,7 +4911,6 @@ void Game::readmaingamesave(tinyxml2::XMLDocument& doc)
else if (SDL_strcmp(pKey, "frames") == 0) else if (SDL_strcmp(pKey, "frames") == 0)
{ {
frames = help.Int(pText); frames = help.Int(pText);
frames = 0;
} }
else if (SDL_strcmp(pKey, "seconds") == 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) else if (SDL_strcmp(pKey, "frames") == 0)
{ {
frames = help.Int(pText); frames = help.Int(pText);
frames = 0;
} }
else if (SDL_strcmp(pKey, "seconds") == 0) else if (SDL_strcmp(pKey, "seconds") == 0)
{ {