From 5e440ac48d0b2cb0ab180aa7e9166943e994386c Mon Sep 17 00:00:00 2001 From: Misa Date: Sat, 20 Mar 2021 23:17:12 -0700 Subject: [PATCH] Remove special text box checks for y-position 180 Y-position 180 would be the position of the Level Complete and Game Complete special text boxes in Flip Mode. However, since the y-position of flipme text boxes actually no longer change (because we have to accomodate changing Flip Mode on-the-fly), these text boxes will never actually be y-position 180 - so we should remove these checks for clarity. --- desktop_version/src/Graphics.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desktop_version/src/Graphics.cpp b/desktop_version/src/Graphics.cpp index db9bc54b..9ad4179a 100644 --- a/desktop_version/src/Graphics.cpp +++ b/desktop_version/src/Graphics.cpp @@ -891,7 +891,7 @@ void Graphics::drawgui(void) // This prevents flashes of special images during delta frames bool drawspecial = textbox[i].tl >= 1.0; - if ((textbox[i].yp == 12 || textbox[i].yp == 180) && textbox[i].r == 165 && drawspecial) + if (textbox[i].yp == 12 && textbox[i].r == 165 && drawspecial) { if (flipmode) { @@ -902,7 +902,7 @@ void Graphics::drawgui(void) drawimage(0, 0, 12, true); } } - else if ((textbox[i].yp == 12 || textbox[i].yp == 180) && textbox[i].g == 165 && drawspecial) + else if (textbox[i].yp == 12 && textbox[i].g == 165 && drawspecial) { if (flipmode) {