equal
deleted
inserted
replaced
185 break; |
185 break; |
186 case ROAD_TILE_DEPOT: return SetTileOwner(t, o); |
186 case ROAD_TILE_DEPOT: return SetTileOwner(t, o); |
187 } |
187 } |
188 } |
188 } |
189 |
189 |
|
190 static inline bool IsRoadOwner(TileIndex t, RoadType rt, Owner o) |
|
191 { |
|
192 assert(HasTileRoadType(t, rt)); |
|
193 return (GetRoadOwner(t, rt) == o); |
|
194 } |
|
195 |
190 /** Which directions are disallowed ? */ |
196 /** Which directions are disallowed ? */ |
191 enum DisallowedRoadDirections { |
197 enum DisallowedRoadDirections { |
192 DRD_NONE, ///< None of the directions are disallowed |
198 DRD_NONE, ///< None of the directions are disallowed |
193 DRD_SOUTHBOUND, ///< All southbound traffic is disallowed |
199 DRD_SOUTHBOUND, ///< All southbound traffic is disallowed |
194 DRD_NORTHBOUND, ///< All northbound traffic is disallowed |
200 DRD_NORTHBOUND, ///< All northbound traffic is disallowed |