forked from mirror/OpenTTD
(svn r24283) -Codechange: Add AddTileNewsItem function to preemptively deduplicate code.
This commit is contained in:
@@ -44,6 +44,11 @@ static inline void AddVehicleAdviceNewsItem(StringID string, VehicleID vehicle)
|
||||
AddNewsItem(string, NS_ADVICE, NR_VEHICLE, vehicle);
|
||||
}
|
||||
|
||||
static inline void AddTileNewsItem(StringID string, NewsSubtype subtype, TileIndex tile, void *free_data = NULL)
|
||||
{
|
||||
AddNewsItem(string, subtype, NR_TILE, tile, NR_NONE, UINT32_MAX, free_data);
|
||||
}
|
||||
|
||||
static inline void AddIndustryNewsItem(StringID string, NewsSubtype subtype, IndustryID industry)
|
||||
{
|
||||
AddNewsItem(string, subtype, NR_INDUSTRY, industry);
|
||||
|
Reference in New Issue
Block a user