1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Disable the pause when the window is deactivated (debug)

This commit is contained in:
Mathieu Schroeter 2017-10-30 17:36:28 +01:00
parent 9681f203f0
commit 6e7947b7be

View File

@ -315,8 +315,6 @@ FinishObjects (void)
static void
HandleEvent (const SDL_Event & event)
{
Point totalDim, iconDim;
if (!g_pause && g_pEvent != nullptr && g_pEvent->TreatEvent (event))
return;
@ -324,6 +322,9 @@ HandleEvent (const SDL_Event & event)
{
case SDL_WINDOWEVENT:
{
#ifndef DEBUG
Point totalDim, iconDim;
switch (event.window.event)
{
case SDL_WINDOWEVENT_FOCUS_GAINED:
@ -357,6 +358,7 @@ HandleEvent (const SDL_Event & event)
g_pMovie->Pause ();
return;
}
#endif /* !DEBUG */
break;
}