1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-16 17:48:29 +02:00

Reset cliplaytest when exiting to menu and check it when loading

This fixes a bug where quitting to the menu from command-line
playtesting with -playassets specified would always use those assets
when loading back in to any custom level. This also fixes loading in to
a custom level quicksave always using the command-line playtesting
arguments instead of using the actual quicksave.
This commit is contained in:
Misa 2021-04-13 20:00:07 -07:00 committed by Ethan Lee
parent 174e804c6b
commit e3145c09f2
2 changed files with 2 additions and 1 deletions

View File

@ -6601,6 +6601,7 @@ void Game::quittomenu(void)
gamestate = TITLEMODE;
graphics.fademode = 4;
FILESYSTEM_unmountAssets();
cliplaytest = false;
graphics.titlebg.tdrawback = true;
graphics.flipmode = false;
//Don't be stuck on the summary screen,

View File

@ -1751,7 +1751,7 @@ bool editorclass::load(std::string& _path)
}
FILESYSTEM_unmountAssets();
if (game.playassets != "")
if (game.cliplaytest && game.playassets != "")
{
FILESYSTEM_mountAssets(game.playassets.c_str());
}