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.
This commit is contained in:
Info Teddy authored and Ethan Lee committed 2020-02-02 20:41:41 -05:00
1 parent 4bc76416f5
commit a2ab8e82e1
1 file changed
+1 -1
+1 -1
View File
@@ -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")
{