From 18b7d1ca14754c773e8443bbff4ffa8d7fef4c76 Mon Sep 17 00:00:00 2001 From: Misa Date: Tue, 21 Jul 2020 14:55:14 -0700 Subject: [PATCH] Set oldxp/oldyp when player teleports through warp token This fixes the bug where it would appear as if they "zipped" to the destination from the warp token. Fixes #384. --- desktop_version/src/Map.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/desktop_version/src/Map.cpp b/desktop_version/src/Map.cpp index 4851d37d..8fdab98b 100644 --- a/desktop_version/src/Map.cpp +++ b/desktop_version/src/Map.cpp @@ -893,6 +893,8 @@ void mapclass::warpto(int rx, int ry , int t, int tx, int ty) { obj.entities[t].xp = tx * 8; obj.entities[t].yp = (ty * 8) - obj.entities[t].h; + obj.entities[t].oldxp = obj.entities[t].xp; + obj.entities[t].oldyp = obj.entities[t].yp; } game.gravitycontrol = 0; }