mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 01:59: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:
parent
28c3ec9572
commit
516e71c7da
2 changed files with 0 additions and 8 deletions
|
@ -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))
|
||||||
{
|
{
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue