diff options
author | tron <tron@openttd.org> | 2006-04-10 20:46:37 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-04-10 20:46:37 +0000 |
commit | b0ee09fd1d82f1e28cd061e978c30dda3ae103e0 (patch) | |
tree | 1292885633de8a336444297f1e36c88f20aa80a1 /npf.c | |
parent | f4a8818dbfd894cc8f601fddd12bf44c3ba4fc13 (diff) | |
download | openttd-b0ee09fd1d82f1e28cd061e978c30dda3ae103e0.tar.xz |
(svn r4349) Remove GetCrossingTransportType(), it's slightly overkill
Diffstat (limited to 'npf.c')
-rw-r--r-- | npf.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -467,8 +467,10 @@ static bool VehicleMayEnterTile(Owner owner, TileIndex tile, DiagDirection enter switch (GetTileType(tile)) { case MP_STREET: /* rail-road crossing : are we looking at the railway part? */ - if (IsLevelCrossing(tile) && GetCrossingTransportType(tile, TrackdirToTrack(DiagdirToDiagTrackdir(enterdir))) == TRANSPORT_RAIL) + if (IsLevelCrossing(tile) && + DiagDirToAxis(enterdir) != GetCrossingRoadAxis(tile)) { return IsTileOwner(tile, owner); /* Railway needs owner check, while the street is public */ + } break; case MP_TUNNELBRIDGE: |