mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
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:
@@ -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")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user