From c8958de537bd5c7ac64ead047bff9515c0e9cc94 Mon Sep 17 00:00:00 2001 From: Misa Date: Mon, 23 Nov 2020 02:02:41 -0800 Subject: [PATCH] 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. --- desktop_version/src/Script.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/desktop_version/src/Script.cpp b/desktop_version/src/Script.cpp index 085708b9..b08231de 100644 --- a/desktop_version/src/Script.cpp +++ b/desktop_version/src/Script.cpp @@ -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]);