1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 18:19:43 +01:00

Add inspecial() checks to savetele() and savequick()

This prevents the game from being saved if you manage to trigger a
savetele() during a "special" gamemode (like if you use the Gravitron
out-of-bounds glitch when replaying Intermission 2, then go to Game
Complete that way).
This commit is contained in:
Misa 2020-06-13 20:08:39 -07:00 committed by Ethan Lee
parent 93a67bd357
commit 1f360620cf

View file

@ -5916,7 +5916,7 @@ void Game::savetele()
{ {
//TODO make this code a bit cleaner. //TODO make this code a bit cleaner.
if (map.custommode) if (map.custommode || inspecial())
{ {
//Don't trash save data! //Don't trash save data!
return; return;
@ -6112,7 +6112,7 @@ void Game::savetele()
void Game::savequick() void Game::savequick()
{ {
if (map.custommode) if (map.custommode || inspecial())
{ {
//Don't trash save data! //Don't trash save data!
return; return;