File diff r18781:e1de9a06f7cd → r18782:6453522c2154
src/house.h
Show inline comments
 
@@ -115,25 +115,25 @@ struct HouseSpec {
 
	uint16 callback_mask;              ///< Bitmask of house callbacks that have to be called
 
	byte random_colour[4];             ///< 4 "random" colours
 
	byte probability;                  ///< Relative probability of appearing (16 is the standard value)
 
	HouseExtraFlags extra_flags;       ///< some more flags
 
	HouseClassID class_id;             ///< defines the class this house has (not grf file based)
 
	AnimationInfo animation;           ///< information about the animation.
 
	byte processing_time;              ///< Periodic refresh multiplier
 
	byte minimum_life;                 ///< The minimum number of years this house will survive before the town rebuilds it
 
	uint32 watched_cargoes;            ///< Cargo types watched for acceptance.
 

	
 
	Money GetRemovalCost() const;
 

	
 
	static FORCEINLINE HouseSpec *Get(size_t house_id)
 
	static inline HouseSpec *Get(size_t house_id)
 
	{
 
		assert(house_id < HOUSE_MAX);
 
		extern HouseSpec _house_specs[];
 
		return &_house_specs[house_id];
 
	}
 
};
 

	
 
/**
 
 * Do HouseID translation for NewGRFs.
 
 * @param hid the HouseID to get the override for.
 
 * @return the HouseID to actually work with.
 
 */