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:
parent
93a67bd357
commit
1f360620cf
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue