El modo demo ya no se pausa al perder el foco

This commit is contained in:
2024-07-05 23:51:43 +02:00
parent 3119e02d2c
commit d36f3539cc
2 changed files with 6 additions and 3 deletions

View File

@@ -3224,7 +3224,10 @@ void Game::checkEvents()
{
if (eventHandler->window.event == SDL_WINDOWEVENT_FOCUS_LOST)
{
pause(true);
if (!demo.enabled)
{
pause(true);
}
}
if (eventHandler->window.event == SDL_WINDOWEVENT_FOCUS_GAINED)