diff options
author | frosch <frosch@openttd.org> | 2011-07-02 12:58:37 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2011-07-02 12:58:37 +0000 |
commit | c544dca5191112bf8a21acff36833c081d304291 (patch) | |
tree | 49342331be8f787edc274a11b3d987a814165be0 /src/settings.cpp | |
parent | 1688470eb9b511990089eab1eec9f0ba3104d4c5 (diff) | |
download | openttd-c544dca5191112bf8a21acff36833c081d304291.tar.xz |
(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.
Diffstat (limited to 'src/settings.cpp')
-rw-r--r-- | src/settings.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/settings.cpp b/src/settings.cpp index 4b98adb86..b0c5494f7 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -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; } |