1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-18 10:38:31 +02:00

Add custommode check to mapclass::twoframedelayfix()

This is to ensure that this function only has an effect inside custom
levels. It might do something weird or bad in the main game.
This commit is contained in:
Misa 2020-08-17 12:10:22 -07:00 committed by Ethan Lee
parent 77b47a3c7e
commit 743eb3f3d6

View File

@ -2126,6 +2126,7 @@ void mapclass::twoframedelayfix()
int block_idx = -1;
if (game.glitchrunnermode
|| !custommode
|| game.deathseq != -1
// obj.checktrigger() sets obj.activetrigger and block_idx
|| obj.checktrigger(&block_idx) <= -1