mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-11-12 14:09:43 +01:00
Move Direct Mode drawer close to editorrenderfixed
Now the drawer closing animation won't be based on deltatime.
This commit is contained in:
parent
4c01d64c33
commit
136c940586
1 changed files with 8 additions and 1 deletions
|
@ -2959,7 +2959,6 @@ void editorrender(void)
|
|||
int t2=0;
|
||||
if(ed.dmtileeditor>0)
|
||||
{
|
||||
ed.dmtileeditor--;
|
||||
if(ed.dmtileeditor<=4)
|
||||
{
|
||||
t2=(4-ed.dmtileeditor)*12;
|
||||
|
@ -3607,6 +3606,14 @@ void editorrenderfixed(void)
|
|||
edentity[i].p3 = (ty2 - ty) * 8;
|
||||
}
|
||||
}
|
||||
|
||||
if (ed.level[ed.levx + ed.maxwidth*ed.levy].directmode == 1)
|
||||
{
|
||||
if (ed.dmtileeditor > 0)
|
||||
{
|
||||
ed.dmtileeditor--;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void editorlogic(void)
|
||||
|
|
Loading…
Reference in a new issue