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

Move "return to editor" alpha timer update to logic functions

Otherwise it'll go by too quickly.

Also something subtle here - I didn't make it conditional on
game.advancetext, so now it'll still decrement even if you have
advancetext up.
This commit is contained in:
Misa 2020-05-02 10:45:35 -07:00 committed by Ethan Lee
parent ca9f44c3b8
commit 5daad95f1d
2 changed files with 7 additions and 3 deletions

View file

@ -1664,4 +1664,11 @@ void gamelogic()
{ {
map.glitchname = map.getglitchname(game.roomx, game.roomy); map.glitchname = map.getglitchname(game.roomx, game.roomy);
} }
#if !defined(NO_CUSTOM_LEVELS)
if (map.custommode && !map.custommodeforreal && ed.returneditoralpha > 0)
{
ed.returneditoralpha -= 15;
}
#endif
} }

View file

@ -1390,9 +1390,6 @@ void gamerender()
if(map.custommode && !map.custommodeforreal && !game.advancetext){ if(map.custommode && !map.custommodeforreal && !game.advancetext){
//Return to level editor //Return to level editor
graphics.bprintalpha(5, 5, "[Press ENTER to return to editor]", 220 - (help.glow), 220 - (help.glow), 255 - (help.glow / 2), ed.returneditoralpha, false); graphics.bprintalpha(5, 5, "[Press ENTER to return to editor]", 220 - (help.glow), 220 - (help.glow), 255 - (help.glow / 2), ed.returneditoralpha, false);
if (ed.returneditoralpha > 0) {
ed.returneditoralpha -= 15;
}
} }
#endif #endif