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

@@ -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());
}