- modified the syntax of the last commit, no semantic modifications
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1717 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
b2bcb79c99
commit
a343ea0eb8
|
@ -605,9 +605,7 @@ static void handleActiveEvent(SDL_Event * event)
|
|||
{
|
||||
// Ignore focus loss through SDL_APPMOUSEFOCUS, since it mostly happens accidentialy
|
||||
// active.state is a bitflag! Mixed events (eg. APPACTIVE|APPMOUSEFOCUS) will thus not be ignored.
|
||||
if ( event->active.state != SDL_APPMOUSEFOCUS )
|
||||
{
|
||||
if(!bMultiPlayer) //can't pause in multiplayer
|
||||
if (!bMultiPlayer && event->active.state != SDL_APPMOUSEFOCUS )
|
||||
{
|
||||
if ( event->active.gain == 1 )
|
||||
{
|
||||
|
@ -635,7 +633,6 @@ static void handleActiveEvent(SDL_Event * event)
|
|||
inputLooseFocus();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue