From c544dca5191112bf8a21acff36833c081d304291 Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 2 Jul 2011 12:58:37 +0000 Subject: (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. --- src/settings.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/settings.cpp') 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; } -- cgit v1.2.3-54-g00ecf