hedgewars/hwengine.pas
changeset 11853 837f9f1b84a5
parent 11835 8f7e28428f3e
child 12186 322aaad4a93d
--- a/hedgewars/hwengine.pas	Sat Oct 01 16:45:59 2016 +0200
+++ b/hedgewars/hwengine.pas	Sat Oct 01 19:06:12 2016 +0200
@@ -205,7 +205,8 @@
                                 end;
                         SDL_WINDOWEVENT_RESTORED:
                                 begin
-                                GameState:= previousGameState;
+                                if GameState = gsSuspend then
+                                    GameState:= previousGameState;
 {$IFDEF ANDROID}
                                 //This call is used to reinitialize the glcontext and reload the textures
                                 ParseCommand('fullscr '+intToStr(LongInt(cFullScreen)), true);