1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-25 05:58:30 +02:00

Move room name hiding update to editorrenderfixed

Now the room name hiding animation won't be based on FPS.
This commit is contained in:
Misa 2021-03-09 15:42:06 -08:00 committed by Ethan Lee
parent 136c940586
commit b202e02578

View File

@ -3373,14 +3373,6 @@ void editorrender(void)
//FillRect(graphics.backBuffer, 0,231,71,240, graphics.RGB(0,0,0));
if(ed.level[ed.levx+(ed.maxwidth*ed.levy)].roomname!="")
{
if(ed.tiley<28)
{
if(ed.roomnamehide>0) ed.roomnamehide--;
}
else
{
if(ed.roomnamehide<12) ed.roomnamehide++;
}
if (graphics.translucentroomname)
{
graphics.footerrect.y = 230+ed.roomnamehide;
@ -3614,6 +3606,24 @@ void editorrenderfixed(void)
ed.dmtileeditor--;
}
}
if (ed.level[ed.levx + ed.maxwidth*ed.levy].roomname != "")
{
if (ed.tiley < 28)
{
if (ed.roomnamehide > 0)
{
ed.roomnamehide--;
}
}
else
{
if (ed.roomnamehide < 12)
{
ed.roomnamehide++;
}
}
}
}
void editorlogic(void)