From d4ff9213b52b4b8e5680aeb3b24f7fd3b4393700 Mon Sep 17 00:00:00 2001 From: onpon4 Date: Wed, 20 May 2015 10:43:04 -0400 Subject: [PATCH] Removed the game's automatic pausing when window focus is lost. This feature is just annoying if for some reason you want to leave the game to do something else while you wait for something. That would normally be a defect, but I can't count the number of times I've been rushing through to get to a particular area, using cheats, and had to wait for some mission condition, and this is only made worse by not being able to do some other work while I wait for it. --- src/player.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/player.cpp b/src/player.cpp index 9a99368..eaae30d 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -250,11 +250,6 @@ void getPlayerInput() engine.keyState[KEY_RIGHT] = prevjoyright = joyright; } break; - - case SDL_WINDOWEVENT: - if(engine.event.window.event == SDL_WINDOWEVENT_FOCUS_LOST) - engine.paused = 1; - break; } if (engine.keyState[KEY_FULLSCREEN])