1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 09:39:43 +01:00

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

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