mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-02-06 08:55:03 +03: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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user