From fb64e057cac60939f789aabf01e3fd2ac4d9aeff Mon Sep 17 00:00:00 2001 From: Clownacy Date: Tue, 7 Jan 2020 06:09:46 +0000 Subject: [PATCH] More-accurate Frame.cpp variable arrangement --- src/Frame.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Frame.cpp b/src/Frame.cpp index 000163cd..7d8b5339 100644 --- a/src/Frame.cpp +++ b/src/Frame.cpp @@ -112,12 +112,13 @@ void GetFramePosition(int *fx, int *fy) void SetFramePosition(int fx, int fy) { + short map_w, map_l; + // End quake gFrame.quake = 0; gFrame.quake2 = 0; // Move frame position - short map_w, map_l; GetMapData(0, &map_w, &map_l); gFrame.x = fx; @@ -186,11 +187,12 @@ void SetFramePosition(int fx, int fy) void SetFrameMyChar(void) { - // Move frame position int mc_x, mc_y; + short map_w, map_l; + + // Move frame position GetMyCharPosition(&mc_x, &mc_y); - short map_w, map_l; GetMapData(0, &map_w, &map_l); gFrame.x = mc_x - ((WINDOW_WIDTH / 2) * 0x200);