src/road_map.h
changeset 9341 bd60c3b2d1e0
parent 9111 48ce04029fe4
child 9784 a9cc0dff1667
equal deleted inserted replaced
9340:7d09c355359a 9341:bd60c3b2d1e0
   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