summaryrefslogtreecommitdiff
path: root/src/rail_gui.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-02-04 15:01:37 +0000
committersmatz <smatz@openttd.org>2009-02-04 15:01:37 +0000
commit496b541cb1eb64405ad6e89a322530e8875e183d (patch)
tree92e9abb3527ae2f6b8e46369018ce3c00736df56 /src/rail_gui.cpp
parent3cf7255c4f6fc9b41cd57fa9ed1be3d53edf5e18 (diff)
downloadopenttd-496b541cb1eb64405ad6e89a322530e8875e183d.tar.xz
(svn r15334) -Codechange: reset setting to old value when the callback procedure returns false
Diffstat (limited to 'src/rail_gui.cpp')
-rw-r--r--src/rail_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp
index fbb4d1c42..86cc5f298 100644
--- a/src/rail_gui.cpp
+++ b/src/rail_gui.cpp
@@ -1779,7 +1779,7 @@ static void SetDefaultRailGui()
* @param 0 needed to be called when a patch setting changes
* @return success, needed for patch settings
*/
-int32 ResetSignalVariant(int32 = 0)
+bool ResetSignalVariant(int32 = 0)
{
SignalVariant new_variant = (_cur_year < _settings_client.gui.semaphore_build_before ? SIG_SEMAPHORE : SIG_ELECTRIC);
@@ -1792,7 +1792,7 @@ int32 ResetSignalVariant(int32 = 0)
_cur_signal_variant = new_variant;
}
- return 0;
+ return true;
}
/** Resets the rail GUI - sets default railtype to build