mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 10:09:43 +01: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:
parent
136c940586
commit
b202e02578
1 changed files with 18 additions and 8 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue