Mercurial > hg > openttd
diff src/town_cmd.cpp @ 19382:d28ff0d5504f draft
(svn r24283) -Codechange: Add AddTileNewsItem function to preemptively deduplicate code.
author | frosch <frosch@openttd.org> |
---|---|
date | Sat, 26 May 2012 14:15:57 +0000 (2012-05-26) |
parents | b9059120ab1d |
children | 0c6420024e22 |
line wrap: on
line diff
--- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -1694,7 +1694,7 @@ SetDParamStr(0, cn); SetDParam(1, t->index); - AddNewsItem(STR_NEWS_NEW_TOWN, NS_INDUSTRY_OPEN, NR_TILE, tile, NR_NONE, UINT32_MAX, cn); + AddTileNewsItem(STR_NEWS_NEW_TOWN, NS_INDUSTRY_OPEN, tile, cn); AI::BroadcastNewEvent(new ScriptEventTownFounded(t->index)); Game::NewEvent(new ScriptEventTownFounded(t->index)); }