diff options
author | smatz <smatz@openttd.org> | 2009-02-04 15:01:37 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-02-04 15:01:37 +0000 |
commit | 496b541cb1eb64405ad6e89a322530e8875e183d (patch) | |
tree | 92e9abb3527ae2f6b8e46369018ce3c00736df56 /src/elrail.cpp | |
parent | 3cf7255c4f6fc9b41cd57fa9ed1be3d53edf5e18 (diff) | |
download | openttd-496b541cb1eb64405ad6e89a322530e8875e183d.tar.xz |
(svn r15334) -Codechange: reset setting to old value when the callback procedure returns false
Diffstat (limited to 'src/elrail.cpp')
-rw-r--r-- | src/elrail.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/elrail.cpp b/src/elrail.cpp index 08bd0f653..dce2c5bee 100644 --- a/src/elrail.cpp +++ b/src/elrail.cpp @@ -479,7 +479,7 @@ void DrawCatenary(const TileInfo *ti) DrawCatenaryRailway(ti); } -int32 SettingsDisableElrail(int32 p1) +bool SettingsDisableElrail(int32 p1) { Vehicle *v; Company *c; @@ -529,5 +529,5 @@ int32 SettingsDisableElrail(int32 p1) * rails. It may have unintended consequences if that function is ever * extended, though. */ ReinitGuiAfterToggleElrail(disable); - return 0; + return true; } |