| 3612 | } |
| 3613 | |
| 3614 | static bool IsRailStationPlatformOccupied(TileIndex tile) |
| 3615 | { |
| 3616 | TileIndexDiff delta = TileOffsByAxis(GetRailStationAxis(tile)); |
| 3617 | |
| 3618 | for (TileIndex t = tile; IsCompatibleTrainStationTile(t, tile); t -= delta) { |
| 3619 | if (HasVehicleOnTile(t, IsTrain)) return true; |
| 3620 | } |
| 3621 | for (TileIndex t = tile + delta; IsCompatibleTrainStationTile(t, tile); t += delta) { |
| 3622 | if (HasVehicleOnTile(t, IsTrain)) return true; |
| 3623 | } |
| 3624 | |
| 3625 | return false; |
| 3626 | } |
| 3627 | |
| 3628 | /** |
| 3629 | * Deletes/Clears the last wagon of a crashed train. It takes the engine of the |
no test coverage detected