(svn r22618) -Fix [FS#4653]: When changing difficulty settings over the network, do not just reopen the difficulty window if any game options window is opened; instead invalidate them properly.

This commit is contained in:
frosch
2011-07-02 12:58:37 +00:00
parent 1322d59aaa
commit 9a5f813b6d
3 changed files with 16 additions and 8 deletions

View File

@@ -1009,9 +1009,7 @@ static bool DifficultyChange(int32)
/* If we are a network-client, update the difficult setting (if it is open).
* Use this instead of just dirtying the window because we need to load in
* the new difficulty settings */
if (_networking && FindWindowById(WC_GAME_OPTIONS, 0) != NULL) {
ShowGameDifficulty();
}
if (_networking) InvalidateWindowClassesData(WC_GAME_OPTIONS, GOID_DIFFICULTY_CHANGED);
return true;
}