From 561b25d0319674716b51d63594e146132d0a33e3 Mon Sep 17 00:00:00 2001 From: truebrain Date: Mon, 19 Dec 2011 20:50:21 +0000 Subject: (svn r23601) -Fix: fix the conflict in window number --- src/settings.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/settings.cpp') diff --git a/src/settings.cpp b/src/settings.cpp index a4ee25997..6052df34f 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -1717,7 +1717,7 @@ CommandCost CmdChangeSetting(TileIndex tile, DoCommandFlag flags, uint32 p1, uin GamelogStopAction(); } - SetWindowDirty(WC_GAME_OPTIONS, 0); + SetWindowClassesDirty(WC_GAME_OPTIONS); } return CommandCost(); @@ -1754,7 +1754,7 @@ CommandCost CmdChangeCompanySetting(TileIndex tile, DoCommandFlag flags, uint32 return CommandCost(); } - SetWindowDirty(WC_GAME_OPTIONS, 0); + SetWindowClassesDirty(WC_GAME_OPTIONS); } return CommandCost(); @@ -1783,7 +1783,9 @@ bool SetSettingValue(uint index, int32 value, bool force_newgame) Write_ValidateSetting(var2, sd, value); } if (sd->desc.proc != NULL) sd->desc.proc((int32)ReadValue(var, sd->save.conv)); - SetWindowDirty(WC_GAME_OPTIONS, 0); + + SetWindowClassesDirty(WC_GAME_OPTIONS); + return true; } -- cgit v1.2.3-54-g00ecf