diff options
Diffstat (limited to 'rail_cmd.c')
-rw-r--r-- | rail_cmd.c | 4 |
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. |