1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 17:49:43 +01: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
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)
{
if(customlevelstatsloaded)
{
return;
}
tinyxml2::XMLDocument doc;
if (!FILESYSTEM_loadTiXml2Document("saves/levelstats.vvv", doc))
{

View file

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