equal
deleted
inserted
replaced
465 } |
465 } |
466 |
466 |
467 switch (GetTileType(tile)) { |
467 switch (GetTileType(tile)) { |
468 case MP_STREET: |
468 case MP_STREET: |
469 /* rail-road crossing : are we looking at the railway part? */ |
469 /* rail-road crossing : are we looking at the railway part? */ |
470 if (IsLevelCrossing(tile) && GetCrossingTransportType(tile, TrackdirToTrack(DiagdirToDiagTrackdir(enterdir))) == TRANSPORT_RAIL) |
470 if (IsLevelCrossing(tile) && |
|
471 DiagDirToAxis(enterdir) != GetCrossingRoadAxis(tile)) { |
471 return IsTileOwner(tile, owner); /* Railway needs owner check, while the street is public */ |
472 return IsTileOwner(tile, owner); /* Railway needs owner check, while the street is public */ |
|
473 } |
472 break; |
474 break; |
473 |
475 |
474 case MP_TUNNELBRIDGE: |
476 case MP_TUNNELBRIDGE: |
475 #if 0 |
477 #if 0 |
476 /* OPTIMISATION: If we are on the middle of a bridge, we will not do the cpu |
478 /* OPTIMISATION: If we are on the middle of a bridge, we will not do the cpu |