mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49:43 +01: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:
parent
4bc76416f5
commit
a2ab8e82e1
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue