mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03: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:
committed by
Misa Elizabeth Kai
parent
a073597ccf
commit
d741b3aa27
@@ -3509,11 +3509,11 @@ void editorinput(void)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
game.returnmenu();
|
|
||||||
map.nexttowercolour();
|
|
||||||
|
|
||||||
// Avoid double return
|
// Avoid double return
|
||||||
esc_from_font = game.currentmenuname == Menu::ed_font;
|
esc_from_font = game.currentmenuname == Menu::ed_font;
|
||||||
|
|
||||||
|
game.returnmenu();
|
||||||
|
map.nexttowercolour();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ed.state == EditorState_MENU && !esc_from_font)
|
if (ed.state == EditorState_MENU && !esc_from_font)
|
||||||
|
|||||||
Reference in New Issue
Block a user