Fixed bug #994987: game unpauses when minimized
This commit is contained in:
parent
fd9a9afa61
commit
1eff07ce49
2 changed files with 8 additions and 3 deletions
|
@ -34,8 +34,9 @@
|
|||
<ul>
|
||||
<p><li>2.2 Released<p>
|
||||
<ul>
|
||||
<li>Fixed bug #994987: game unpauses when minimized (from Jimmy Salmon).
|
||||
<li>Added function documentation to the game page of the Stratagus Configuration language Configuration (from François Beerten)
|
||||
<li>Fixed Inability to place units in editor after adding build restrictions (from Russell Smith)
|
||||
<li>Fixed Inability to place units in editor after adding build restrictions (from Russell Smith)
|
||||
<li>Fixed bug #984517: Multiplayer chat didnt wrap correctly (from François Beerten)
|
||||
<li>Draw Correct player Color for Rescued Units in OpenGL mode (from Russell Smith)
|
||||
<li>Fix Bug in pathfinder, unit's won't walk past goal anymore when it moves (from Russell Smith)
|
||||
|
|
|
@ -547,10 +547,14 @@ static void SdlDoEvent(const EventCallback* callbacks, const SDL_Event* event)
|
|||
|
||||
if (IsVisible && !event->active.gain) {
|
||||
IsVisible = 0;
|
||||
UiTogglePause();
|
||||
if (!GamePaused) {
|
||||
UiTogglePause();
|
||||
}
|
||||
} else if (!IsVisible && event->active.gain) {
|
||||
IsVisible = 1;
|
||||
UiTogglePause();
|
||||
if (GamePaused) {
|
||||
UiTogglePause();
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue