(svn r13872) -Feature: Split the news message announcing opening and closure of industries into two news of their own

This commit is contained in:
belugas
2008-07-30 01:53:03 +00:00
parent b90dc6cc34
commit d358eff64d
5 changed files with 46 additions and 10 deletions

View File

@@ -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;