Revert "Fixed rare case of not being able to start a new game or exit game from main menu"

This reverts commit 89183bbb4e.
This commit is contained in:
Lwmte 2024-12-27 05:06:57 +01:00
parent 89183bbb4e
commit be627f1005
2 changed files with 5 additions and 12 deletions

View file

@ -7,7 +7,6 @@ TombEngine releases are located in this repository (alongside with Tomb Editor):
### Bug fixes
* Fixed static meshes with dynamic light mode not accepting room lights.
* Fixed rare case of not being able to start a new game or exit game from main menu.
* Fixed antialiasing quality not changing after changing it in display settings.
* Fixed endless explosion effect for Puna.

View file

@ -643,24 +643,18 @@ GameStatus DoGameLoop(int levelIndex)
status = GamePhase(false);
g_Synchronizer.Init();
bool legacy30FpsDrawDone = false;
bool controlPhaseDone = false;
bool legacy30FpsDoneDraw = false;
while (DoTheGame)
{
g_Synchronizer.Sync();
controlPhaseDone = false;
while (g_Synchronizer.Synced())
{
if (!controlPhaseDone)
status = ControlPhase(false);
status = ControlPhase(false);
g_Synchronizer.Step();
controlPhaseDone = true;
legacy30FpsDrawDone = false;
legacy30FpsDoneDraw = false;
}
if (status != GameStatus::Normal)
@ -671,10 +665,10 @@ GameStatus DoGameLoop(int levelIndex)
if (!g_Configuration.EnableHighFramerate)
{
if (!legacy30FpsDrawDone)
if (!legacy30FpsDoneDraw)
{
DrawPhase(!levelIndex, 0.0f);
legacy30FpsDrawDone = true;
legacy30FpsDoneDraw = true;
}
}
else