diff options
author | truebrain <truebrain@openttd.org> | 2011-12-19 20:50:21 +0000 |
---|---|---|
committer | truebrain <truebrain@openttd.org> | 2011-12-19 20:50:21 +0000 |
commit | 561b25d0319674716b51d63594e146132d0a33e3 (patch) | |
tree | 9329a875bcf71cf40becc5b8a254db8ddfdcf05e /src/settings.cpp | |
parent | bcbdc3933c4aeff90692a1059375b1f590e7c904 (diff) | |
download | openttd-561b25d0319674716b51d63594e146132d0a33e3.tar.xz |
(svn r23601) -Fix: fix the conflict in window number
Diffstat (limited to 'src/settings.cpp')
-rw-r--r-- | src/settings.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
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; } |