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

Don't allow setting Super Gravitron records in custom levels

Custom levels shouldn't affect main game save data, and Super Gravitron
records are no exception.

I also added MAKEANDPLAY ifdefs just to be safe.
This commit is contained in:
Misa 2021-05-03 19:19:22 -07:00 committed by Ethan Lee
parent 4e0484553d
commit a52547b60d

View file

@ -420,7 +420,8 @@ void gamelogic(void)
game.swnstate3 = 0;
game.swnstate4 = 0;
game.swndelay = 0;
if (game.swntimer >= game.swnrecord)
#ifndef MAKEANDPLAY
if (game.swntimer >= game.swnrecord && !map.custommode)
{
game.swnrecord = game.swntimer;
if (game.swnmessage == 0)
@ -430,6 +431,7 @@ void gamelogic(void)
}
game.swnmessage = 1;
}
#endif
}
}
@ -546,7 +548,13 @@ void gamelogic(void)
else if(game.swngame==1) //super gravitron game
{
game.swntimer += 1;
if (game.swntimer > game.swnrecord) game.swnrecord = game.swntimer;
#ifndef MAKEANDPLAY
if (!map.custommode)
{
if (game.swntimer > game.swnrecord)
{
game.swnrecord = game.swntimer;
}
if (game.swntimer >= 150 && game.swnrank == 0)
{
@ -614,6 +622,8 @@ void gamelogic(void)
music.playef(26);
}
}
}
#endif
obj.generateswnwave(1);