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:
parent
53ed33039f
commit
a7acf4e177
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue