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 2020-02-02 17:25:15 -08:00 committed by Ethan Lee
parent 4bc76416f5
commit a2ab8e82e1
1 changed files with 1 additions and 1 deletions

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")
{