Fix cycling menus in editor not updating

While there's a check to recreate the menu if you cycle the language
while in a menu, editor menus are a special case and need specific
handling.
This commit is contained in:
Misa 2024-02-02 16:06:11 -08:00 committed by Misa Elizabeth Kai
parent 53ed33039f
commit a7acf4e177
1 changed files with 3 additions and 1 deletions

View File

@ -6,6 +6,7 @@
#include "Alloc.h"
#include "ButtonGlyphs.h"
#include "Constants.h"
#include "Editor.h"
#include "Exit.h"
#include "Game.h"
#include "GlitchrunnerMode.h"
@ -188,7 +189,8 @@ bool cycle_language(bool should_recompute_textboxes)
should_recompute_textboxes = true;
}
if (game.gamestate == TITLEMODE)
if (game.gamestate == TITLEMODE
|| (game.gamestate == EDITORMODE && ed.state == EditorState_MENU))
{
if (game.currentmenuname == Menu::translator_options_limitscheck)
{