STARK: Fix in-game quit option not respecting the Always RTL option

This was due to the engine both exiting immediately from the game loop
and pushing a QUIT_EVENT (through the call to quitGame()). This meant
that that QUIT_EVENT was processed only after the game had already
returned to the launcher, causing the launcher to close.

This fixes bug #12904
This commit is contained in:
Thierry Crozat 2021-09-06 19:57:13 +01:00
parent 68975ab5a4
commit 3e06dd3630

View File

@ -153,10 +153,8 @@ void StarkEngine::mainLoop() {
processEvents();
if (StarkUserInterface->shouldExit()) {
quitGame();
if (StarkUserInterface->shouldExit())
break;
}
if (StarkResourceProvider->hasLocationChangeRequest()) {
StarkGlobal->setNormalSpeed();