summaryrefslogtreecommitdiff
path: root/rail_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-03-06 20:28:28 +0000
committertron <tron@openttd.org>2006-03-06 20:28:28 +0000
commit2d3c28f2b3d24c2b01e54a51e2dcf5ad7f4851c8 (patch)
tree410be31dd2267cd8af3257b3d145965515575d34 /rail_cmd.c
parentfc1e9c5a92ccfeaea09b1fcd1bb58f1de4cb2644 (diff)
downloadopenttd-2d3c28f2b3d24c2b01e54a51e2dcf5ad7f4851c8.tar.xz
(svn r3776) Replace many ints and magic numbers by Direction, DiagDirection and friends
Diffstat (limited to 'rail_cmd.c')
-rw-r--r--rail_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rail_cmd.c b/rail_cmd.c
index 4ce161bb0..f00ca595c 100644
--- a/rail_cmd.c
+++ b/rail_cmd.c
@@ -1755,13 +1755,13 @@ make_red:
}
-bool UpdateSignalsOnSegment(TileIndex tile, byte direction)
+bool UpdateSignalsOnSegment(TileIndex tile, Direction dir)
{
SetSignalsData ssd;
int result = -1;
+ DiagDirection direction = DirToDiagDir(dir);
ssd.cur_stack = 0;
- direction >>= 1;
for (;;) {
// go through one segment and update all signals pointing into that segment.