1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 01:59: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:
Dav999 2023-09-14 03:52:04 +02:00 committed by Misa Elizabeth Kai
parent a073597ccf
commit d741b3aa27

View file

@ -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)