1
0
Fork 0
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:
Misa 2021-03-09 15:41:19 -08:00 committed by Ethan Lee
parent 4c01d64c33
commit 136c940586

View file

@ -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)