diff options
author | tron <tron@openttd.org> | 2006-03-08 08:28:48 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-03-08 08:28:48 +0000 |
commit | 2181a72e9ee5db7aa568dd25172e1355e76b4f45 (patch) | |
tree | 2ff4a5c18f268f19fbfd9e5f264a66079d450100 /station_cmd.c | |
parent | 03536a32a189918713ec808bf270d4ad853a7a38 (diff) | |
download | openttd-2181a72e9ee5db7aa568dd25172e1355e76b4f45.tar.xz |
(svn r3787) Use DirToDiagDir() instead of >> 1
Diffstat (limited to 'station_cmd.c')
-rw-r--r-- | station_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/station_cmd.c b/station_cmd.c index 90601855a..b40657191 100644 --- a/station_cmd.c +++ b/station_cmd.c @@ -2177,7 +2177,7 @@ static uint32 VehicleEnter_Station(Vehicle *v, TileIndex tile, int x, int y) { if (v->type == VEH_Train) { if (IS_BYTE_INSIDE(_m[tile].m5, 0, 8) && IsFrontEngine(v) && - !IsCompatibleTrainStationTile(tile + TileOffsByDir(v->direction >> 1), tile)) { + !IsCompatibleTrainStationTile(tile + TileOffsByDir(DirToDiagDir(v->direction)), tile)) { StationID station_id = _m[tile].m2; if ((!(v->current_order.flags & OF_NON_STOP) && !_patches.new_nonstop) || |