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

Fix limits check not updating with CTRL+F8

This makes it work pretty well. It basically just resets the state of
the limits check and starts from the first limit broken (if any), which
is behavior that makes sense to me.

Otherwise, without this, it seems to invalidate pointers and, on my
machine, start pulling strings from the language XML, which is
horrifying.
This commit is contained in:
Misa 2024-01-22 00:01:12 -08:00 committed by Misa Elizabeth Kai
parent ad6e31aa12
commit 0aea27f237

View file

@ -12,6 +12,7 @@
#include "Graphics.h" #include "Graphics.h"
#include "GraphicsUtil.h" #include "GraphicsUtil.h"
#include "Localization.h" #include "Localization.h"
#include "LocalizationMaint.h"
#include "LocalizationStorage.h" #include "LocalizationStorage.h"
#include "Music.h" #include "Music.h"
#include "Screen.h" #include "Screen.h"
@ -189,6 +190,11 @@ bool cycle_language(bool should_recompute_textboxes)
if (game.gamestate == TITLEMODE) if (game.gamestate == TITLEMODE)
{ {
if (game.currentmenuname == Menu::translator_options_limitscheck)
{
loc::local_limits_check();
}
int temp = game.menucountdown; int temp = game.menucountdown;
game.createmenu(game.currentmenuname, true); game.createmenu(game.currentmenuname, true);
game.menucountdown = temp; game.menucountdown = temp;