1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-28 15:38:30 +02:00

Move glitch roomname updating to logic functions

Otherwise they go by so fast that it's basically impossible to see them.
This commit is contained in:
Misa 2020-05-02 10:31:48 -07:00 committed by Ethan Lee
parent 90280b0f92
commit 68fe5bd72d
2 changed files with 10 additions and 2 deletions

View File

@ -115,6 +115,11 @@ void maplogic()
}else if (map.cursorstate == 2){ }else if (map.cursorstate == 2){
map.cursordelay++; map.cursordelay++;
} }
if (map.finalmode)
{
map.glitchname = map.getglitchname(game.roomx, game.roomy);
}
} }
@ -1654,4 +1659,9 @@ void gamelogic()
obj.entities[i].updatecolour(); obj.entities[i].updatecolour();
} }
if (map.finalmode)
{
map.glitchname = map.getglitchname(game.roomx, game.roomy);
}
} }

View File

@ -1371,7 +1371,6 @@ void gamerender()
if (map.finalmode) if (map.finalmode)
{ {
map.glitchname = map.getglitchname(game.roomx, game.roomy);
graphics.bprint(5, 231, map.glitchname, 196, 196, 255 - help.glow, true); graphics.bprint(5, 231, map.glitchname, 196, 196, 255 - help.glow, true);
}else{ }else{
graphics.bprint(5, 231, map.roomname, 196, 196, 255 - help.glow, true); graphics.bprint(5, 231, map.roomname, 196, 196, 255 - help.glow, true);
@ -1647,7 +1646,6 @@ void maprender()
else else
{ {
if (map.finalmode){ if (map.finalmode){
map.glitchname = map.getglitchname(game.roomx, game.roomy);
graphics.Print(5, 2, map.glitchname, 196, 196, 255 - help.glow, true); graphics.Print(5, 2, map.glitchname, 196, 196, 255 - help.glow, true);
}else{ }else{
graphics.Print(5, 2, map.roomname, 196, 196, 255 - help.glow, true); graphics.Print(5, 2, map.roomname, 196, 196, 255 - help.glow, true);