1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 17:49:43 +01:00

Update player lerpoldxp/yp in gotoposition()

Otherwise, the player would appear to "zip" during the deltaframes
between their previous position and their new position. This did not
happen in the previous game loop order and only happens in the new one.
This commit is contained in:
Misa 2020-11-23 02:02:41 -08:00 committed by Ethan Lee
parent af70076088
commit c8958de537

View file

@ -306,6 +306,8 @@ void scriptclass::run(void)
{
obj.entities[player].xp = ss_toi(words[1]);
obj.entities[player].yp = ss_toi(words[2]);
obj.entities[player].lerpoldxp = obj.entities[player].xp;
obj.entities[player].lerpoldyp = obj.entities[player].yp;
}
game.gravitycontrol = ss_toi(words[3]);