equal
deleted
inserted
replaced
294 |
294 |
295 // check if the new tile can be entered from that direction |
295 // check if the new tile can be entered from that direction |
296 if (tpf->tracktype == TRANSPORT_ROAD) { |
296 if (tpf->tracktype == TRANSPORT_ROAD) { |
297 // road stops and depots now have a track (r4419) |
297 // road stops and depots now have a track (r4419) |
298 // don't enter road stop from the back |
298 // don't enter road stop from the back |
299 if (IsRoadStopTile(tile) && ReverseDiagDir(GetRoadStopDir(tile)) != direction) return; |
299 if (IsStandardRoadStopTile(tile) && ReverseDiagDir(GetRoadStopDir(tile)) != direction) return; |
300 // don't enter road depot from the back |
300 // don't enter road depot from the back |
301 if (IsTileDepotType(tile, TRANSPORT_ROAD) && ReverseDiagDir(GetRoadDepotDirection(tile)) != direction) return; |
301 if (IsTileDepotType(tile, TRANSPORT_ROAD) && ReverseDiagDir(GetRoadDepotDirection(tile)) != direction) return; |
302 } |
302 } |
303 |
303 |
304 /* Check if the new tile is a tunnel or bridge head and that the direction |
304 /* Check if the new tile is a tunnel or bridge head and that the direction |