File diff r14559:94c8fa3de6fe → r14560:a63b9e37c39e
src/waypoint_base.h
Show inline comments
 
@@ -40,6 +40,15 @@ struct Waypoint : SpecializedStation<Way
 
	{
 
		return 1;
 
	}
 

	
 
	/**
 
	 * Is this a single tile waypoint?
 
	 * @return true if it is.
 
	 */
 
	FORCEINLINE bool IsSingleTile() const
 
	{
 
		return (this->facilities & FACIL_TRAIN) != 0 && this->train_station.w == 1 && this->train_station.h == 1;
 
	}
 
};
 

	
 
#define FOR_ALL_WAYPOINTS(var) FOR_ALL_BASE_STATIONS_OF_TYPE(Waypoint, var)