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:
parent
ca9f44c3b8
commit
5daad95f1d
2 changed files with 7 additions and 3 deletions
|
@ -1664,4 +1664,11 @@ void gamelogic()
|
|||
{
|
||||
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
|
||||
}
|
||||
|
|
|
@ -1390,9 +1390,6 @@ void gamerender()
|
|||
if(map.custommode && !map.custommodeforreal && !game.advancetext){
|
||||
//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);
|
||||
if (ed.returneditoralpha > 0) {
|
||||
ed.returneditoralpha -= 15;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue