1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-26 14:38:30 +02:00

Remove customlevelstatsloaded from Game

This boolean is assigned, and it is checked... but it's never assigned
to true, thus making it useless. I also checked 2.2 source and the same
thing happens there; to prevent any confusion, I'm removing this.
This commit is contained in:
Misa 2021-03-23 15:32:11 -07:00 committed by Ethan Lee
parent 28c3ec9572
commit 516e71c7da
2 changed files with 0 additions and 8 deletions

View File

@ -412,8 +412,6 @@ void Game::clearcustomlevelstats(void)
{ {
//just clearing the array //just clearing the array
customlevelstats.clear(); customlevelstats.clear();
customlevelstatsloaded=false; //To ensure we don't load it where it isn't needed
} }
@ -475,11 +473,6 @@ void Game::updatecustomlevelstats(std::string clevel, int cscore)
void Game::loadcustomlevelstats(void) void Game::loadcustomlevelstats(void)
{ {
if(customlevelstatsloaded)
{
return;
}
tinyxml2::XMLDocument doc; tinyxml2::XMLDocument doc;
if (!FILESYSTEM_loadTiXml2Document("saves/levelstats.vvv", doc)) if (!FILESYSTEM_loadTiXml2Document("saves/levelstats.vvv", doc))
{ {

View File

@ -416,7 +416,6 @@ public:
void updatecustomlevelstats(std::string clevel, int cscore); void updatecustomlevelstats(std::string clevel, int cscore);
std::vector<CustomLevelStat> customlevelstats; std::vector<CustomLevelStat> customlevelstats;
bool customlevelstatsloaded;
std::vector<SDL_GameControllerButton> controllerButton_map; std::vector<SDL_GameControllerButton> controllerButton_map;