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 | ab9af3b05d2b99a63b10a9923026916015788099 (patch) | |
tree | 2ff4a5c18f268f19fbfd9e5f264a66079d450100 /station_cmd.c | |
parent | fa6632ec3240c1407668f55169d316c1c4b6bd45 (diff) | |
download | openttd-ab9af3b05d2b99a63b10a9923026916015788099.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) || |