mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 09:28:15 +03: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:
@@ -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))
|
||||
{
|
||||
|
||||
@@ -416,7 +416,6 @@ public:
|
||||
void updatecustomlevelstats(std::string clevel, int cscore);
|
||||
|
||||
std::vector<CustomLevelStat> customlevelstats;
|
||||
bool customlevelstatsloaded;
|
||||
|
||||
|
||||
std::vector<SDL_GameControllerButton> controllerButton_map;
|
||||
|
||||
Reference in New Issue
Block a user