diff options
author | belugas <belugas@openttd.org> | 2008-07-30 01:53:03 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2008-07-30 01:53:03 +0000 |
commit | d358eff64d287f70e78bb42cb87cdc87aaadea34 (patch) | |
tree | 838afc33ec43c74b514ae837ca900ddf06617ecd /src/industry_cmd.cpp | |
parent | b90dc6cc347800e5894736fd83fd8f8467ec968e (diff) | |
download | openttd-d358eff64d287f70e78bb42cb87cdc87aaadea34.tar.xz |
(svn r13872) -Feature: Split the news message announcing opening and closure of industries into two news of their own
Diffstat (limited to 'src/industry_cmd.cpp')
-rw-r--r-- | src/industry_cmd.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp index cabf41db8..19fb92f38 100644 --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -1688,7 +1688,7 @@ CommandCost CmdBuildIndustry(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) } else { SetDParam(1, ind->town->index); } - AddNewsItem(indspec->new_industry_text, NS_OPENCLOSE, ind->xy, 0); + AddNewsItem(indspec->new_industry_text, NS_INDUSTRY_OPEN, ind->xy, 0); } return CommandCost(EXPENSES_OTHER, indspec->GetConstructionCost()); @@ -1890,7 +1890,7 @@ static void MaybeNewIndustry(void) SetDParam(1, ind->town->index); } AddNewsItem(ind_spc->new_industry_text, - NS_OPENCLOSE, ind->xy, 0); + NS_INDUSTRY_OPEN, ind->xy, 0); } /** @@ -2205,7 +2205,7 @@ static void ChangeIndustryProduction(Industry *i, bool monthly) NewsSubtype ns; /* Compute news category */ if (closeit) { - ns = NS_OPENCLOSE; + ns = NS_INDUSTRY_CLOSE; } else { switch (WhoCanServiceIndustry(i)) { case 0: ns = NS_INDUSTRY_NOBODY; break; |