From 7c55b449e00df0109d0940033f3667c9ab8e9b47 Mon Sep 17 00:00:00 2001 From: Misa Date: Thu, 22 Apr 2021 20:27:45 -0700 Subject: [PATCH] Fix two places with map.oldypos not being assigned These places didn't assign map.oldypos when they assigned map.ypos. This could have only resulted in visual glitches, but it's good to be consistent and proactively fix these. --- desktop_version/src/Script.cpp | 1 + desktop_version/src/main.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/desktop_version/src/Script.cpp b/desktop_version/src/Script.cpp index 874235fe..ebf7a4e3 100644 --- a/desktop_version/src/Script.cpp +++ b/desktop_version/src/Script.cpp @@ -2705,6 +2705,7 @@ void scriptclass::startgamemode( int t ) if (INBOUNDS_VEC(i, obj.entities)) { map.ypos = obj.entities[i].yp - 120; + map.oldypos = map.ypos; } graphics.towerbg.bypos = map.ypos / 2; map.cameramode = 0; diff --git a/desktop_version/src/main.cpp b/desktop_version/src/main.cpp index b603c52e..3bd2a25e 100644 --- a/desktop_version/src/main.cpp +++ b/desktop_version/src/main.cpp @@ -494,6 +494,7 @@ int main(int argc, char *argv[]) map.nexttowercolour(); map.ypos = (700-29) * 8; + map.oldypos = map.ypos; graphics.towerbg.bypos = map.ypos / 2; graphics.titlebg.bypos = map.ypos / 2;