summaryrefslogtreecommitdiff
path: root/src/news_func.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-05-26 14:16:07 +0000
committerfrosch <frosch@openttd.org>2012-05-26 14:16:07 +0000
commit01100053ff5308e0a07b1faa449255527cc12c31 (patch)
tree7f5bb0b41cc051cc6927dc9ed454ce74b05db362 /src/news_func.h
parenta8c88f43b678b6d44e1fb4f78a51cdb7fb08a8aa (diff)
downloadopenttd-01100053ff5308e0a07b1faa449255527cc12c31.tar.xz
(svn r24285) -Codechange: Add a more explcit NewsFlag to indicate that the first string parameter is a vehicle ID.
Diffstat (limited to 'src/news_func.h')
-rw-r--r--src/news_func.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/news_func.h b/src/news_func.h
index b825c686f..f218db363 100644
--- a/src/news_func.h
+++ b/src/news_func.h
@@ -41,7 +41,7 @@ static inline void AddVehicleNewsItem(StringID string, NewsType type, VehicleID
*/
static inline void AddVehicleAdviceNewsItem(StringID string, VehicleID vehicle)
{
- AddNewsItem(string, NT_ADVICE, NF_INCOLOUR | NF_SMALL, NR_VEHICLE, vehicle);
+ AddNewsItem(string, NT_ADVICE, NF_INCOLOUR | NF_SMALL | NF_VEHICLE_PARAM0, NR_VEHICLE, vehicle);
}
static inline void AddTileNewsItem(StringID string, NewsType type, TileIndex tile, void *free_data = NULL)