From a2ab8e82e14c60c3cad296be87884ec0273d15b0 Mon Sep 17 00:00:00 2001 From: Info Teddy Date: Sun, 2 Feb 2020 17:25:15 -0800 Subject: [PATCH] Account for height of textbox in flipme() The problem with flipme() was that it WAS properly reflecting ("reflecting" as in mirroring over a given line) the text box over the line y=120, BUT it forgot to account for the height of the text box. Thus, the text box position would be off by the length of its own height. And when the text box got taller, this offset would worsen and worsen. --- desktop_version/src/Script.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop_version/src/Script.cpp b/desktop_version/src/Script.cpp index 8c2315ae..1e9e34b5 100644 --- a/desktop_version/src/Script.cpp +++ b/desktop_version/src/Script.cpp @@ -573,7 +573,7 @@ void scriptclass::run( KeyPoll& key, Graphics& dwgfx, Game& game, mapclass& map, } else if (words[0] == "flipme") { - if(dwgfx.flipmode) texty += 2*(120 - texty); + if(dwgfx.flipmode) texty += 2*(120 - texty) - 8*(txtnumlines+2); } else if (words[0] == "speak_active") {