mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 01:48:15 +03:00
Move general oldxp/oldyp updating to just before gameinput()
This has to be done in order to fix rendering when on a conveyor or moving platform and actively moving with or against it. Pretty sure this shouldn't break anything, oldxp/oldyp is mostly visual after all (and by the time it's used for gravity line collision checking, updateentitylogic() would've already gotten around to it anyway). Incidentally, this also fixes a jitter that would occur if you were moving at the time you died or collected a trinket or custom crewmate, due to the game temporarily freezing and either doing deathsequence or completestop.
This commit is contained in:
@@ -4343,9 +4343,6 @@ void entityclass::updateentitylogic( int t )
|
||||
return;
|
||||
}
|
||||
|
||||
entities[t].oldxp = entities[t].xp;
|
||||
entities[t].oldyp = entities[t].yp;
|
||||
|
||||
entities[t].vx = entities[t].vx + entities[t].ax;
|
||||
entities[t].vy = entities[t].vy + entities[t].ay;
|
||||
entities[t].ax = 0;
|
||||
|
||||
Reference in New Issue
Block a user