summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2006-04-12 12:24:39 +0000
committercelestar <celestar@openttd.org>2006-04-12 12:24:39 +0000
commit46eab6aec6268b44032362abe9b95dd5337ecd7a (patch)
treeb018a05e4bb2bcfb2498bfd4810ab3547d1bbd88
parent25f3a0614158c67cd7f062daee0f30e929291bec (diff)
downloadopenttd-46eab6aec6268b44032362abe9b95dd5337ecd7a.tar.xz
(svn r4382) -Codechange: Make use of SetSignalType where appropriate
-rw-r--r--rail_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rail_cmd.c b/rail_cmd.c
index 2d17af000..4947fb7ab 100644
--- a/rail_cmd.c
+++ b/rail_cmd.c
@@ -670,7 +670,7 @@ int32 CmdBuildSingleSignal(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
_m[tile].m5 |= RAIL_TYPE_SIGNALS; // change into signals
_m[tile].m2 |= 0xF0; // all signals are on
_m[tile].m3 &= ~0xF0; // no signals built by default
- _m[tile].m4 = 0;
+ SetSignalType(tile, SIGTYPE_NORMAL);
SetSignalVariant(tile, sigvar);
}