diff options
author | rubidium <rubidium@openttd.org> | 2008-03-28 08:53:36 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-03-28 08:53:36 +0000 |
commit | 2426f5342f7d02e4c7a486123fb1f1eda6d556ad (patch) | |
tree | 6ac53730ac3371086562388c2590d8323adb6b80 /src/industry_cmd.cpp | |
parent | 0e73ac21986a3b1224f63d220b9dbfb81a91d239 (diff) | |
download | openttd-2426f5342f7d02e4c7a486123fb1f1eda6d556ad.tar.xz |
(svn r12459) -Codechange: split news.h into news_type.h and news_func.h.
Diffstat (limited to 'src/industry_cmd.cpp')
-rw-r--r-- | src/industry_cmd.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp index 7b8d840e9..9dd1077ec 100644 --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -13,7 +13,7 @@ #include "command_func.h" #include "industry.h" #include "town.h" -#include "news.h" +#include "news_func.h" #include "saveload.h" #include "variables.h" #include "genworld.h" @@ -1641,7 +1641,7 @@ CommandCost CmdBuildIndustry(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) SetDParam(1, ind->town->index); } AddNewsItem(indspec->new_industry_text, - NEWS_FLAGS(NM_THIN, NF_VIEWPORT | NF_TILE, NT_OPENCLOSE, 0), ind->xy, 0); + NM_THIN, NF_VIEWPORT | NF_TILE, NT_OPENCLOSE, DNC_NONE, ind->xy, 0); break; } } @@ -1860,7 +1860,7 @@ static void MaybeNewIndustry(void) SetDParam(1, ind->town->index); } AddNewsItem(ind_spc->new_industry_text, - NEWS_FLAGS(NM_THIN, NF_VIEWPORT | NF_TILE, NT_OPENCLOSE, 0), ind->xy, 0); + NM_THIN, NF_VIEWPORT | NF_TILE, NT_OPENCLOSE, DNC_NONE, ind->xy, 0); } /** @@ -2003,7 +2003,7 @@ static void ReportNewsProductionChangeIndustry(Industry *ind, CargoID type, int SetDParam(1, ind->index); AddNewsItem( percent >= 0 ? STR_INDUSTRY_PROD_GOUP : STR_INDUSTRY_PROD_GODOWN, - NEWS_FLAGS(NM_THIN, NF_VIEWPORT | NF_TILE, nt, 0), + NM_THIN, NF_VIEWPORT | NF_TILE, nt, DNC_NONE, ind->xy + TileDiffXY(1, 1), 0 ); } @@ -2196,7 +2196,7 @@ static void ChangeIndustryProduction(Industry *i, bool monthly) } /* and report the news to the user */ AddNewsItem(str, - NEWS_FLAGS(NM_THIN, NF_VIEWPORT | NF_TILE, nt, 0), + NM_THIN, NF_VIEWPORT | NF_TILE, nt, DNC_NONE, i->xy + TileDiffXY(1, 1), 0); } } |