mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-02-04 00:05:31 +03:00
Actually delete saves/unlock.vvv in deletestats()
Having to blank everything out in the stats file is very kludge-y.
This commit is contained in:
@@ -4214,6 +4214,12 @@ void Game::gethardestroom()
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Game::deletestats()
|
void Game::deletestats()
|
||||||
|
{
|
||||||
|
if (!FILESYSTEM_delete("saves/unlock.vvv"))
|
||||||
|
{
|
||||||
|
puts("Error deleting saves/unlock.vvv");
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
for (int i = 0; i < 25; i++)
|
for (int i = 0; i < 25; i++)
|
||||||
{
|
{
|
||||||
@@ -4229,7 +4235,7 @@ void Game::deletestats()
|
|||||||
}
|
}
|
||||||
graphics.setflipmode = false;
|
graphics.setflipmode = false;
|
||||||
stat_trinkets = 0;
|
stat_trinkets = 0;
|
||||||
savestats();
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Game::unlocknum( int t )
|
void Game::unlocknum( int t )
|
||||||
|
|||||||
Reference in New Issue
Block a user