mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 09:39:43 +01:00
Fix double return when pressing Esc in editor font menu
The line that checked if the current menu is the font menu ended up below the code that returned a menu, so this was an easy fix. Closes #1017.
This commit is contained in:
parent
a073597ccf
commit
d741b3aa27
1 changed files with 3 additions and 3 deletions
|
@ -3509,11 +3509,11 @@ void editorinput(void)
|
|||
}
|
||||
else
|
||||
{
|
||||
game.returnmenu();
|
||||
map.nexttowercolour();
|
||||
|
||||
// Avoid double return
|
||||
esc_from_font = game.currentmenuname == Menu::ed_font;
|
||||
|
||||
game.returnmenu();
|
||||
map.nexttowercolour();
|
||||
}
|
||||
|
||||
if (ed.state == EditorState_MENU && !esc_from_font)
|
||||
|
|
Loading…
Reference in a new issue