(svn r16886) -Codechange: unify naming of some string IDs related to string codes and group them logically

This commit is contained in:
rubidium
2009-07-20 11:21:57 +00:00
parent dc943b35e0
commit e3053660c6
62 changed files with 520 additions and 520 deletions

View File

@@ -1724,7 +1724,7 @@ CommandCost CmdBuildIndustry(TileIndex tile, DoCommandFlag flags, uint32 p1, uin
if ((flags & DC_EXEC) && _game_mode != GM_EDITOR && ind != NULL) {
SetDParam(0, indspec->name);
if (indspec->new_industry_text > STR_LAST_STRINGID) {
SetDParam(1, STR_TOWN);
SetDParam(1, STR_TOWN_NAME);
SetDParam(2, ind->town->index);
} else {
SetDParam(1, ind->town->index);
@@ -1929,7 +1929,7 @@ static void MaybeNewIndustry()
SetDParam(0, ind_spc->name);
if (ind_spc->new_industry_text > STR_LAST_STRINGID) {
SetDParam(1, STR_TOWN);
SetDParam(1, STR_TOWN_NAME);
SetDParam(2, ind->town->index);
} else {
SetDParam(1, ind->town->index);
@@ -2273,11 +2273,11 @@ static void ChangeIndustryProduction(Industry *i, bool monthly)
}
/* Set parameters of news string */
if (str > STR_LAST_STRINGID) {
SetDParam(0, STR_TOWN);
SetDParam(0, STR_TOWN_NAME);
SetDParam(1, i->town->index);
SetDParam(2, indspec->name);
} else if (closeit) {
SetDParam(0, STR_INDUSTRY_FORMAT);
SetDParam(0, STR_FORMAT_INDUSTRY_NAME);
SetDParam(1, i->town->index);
SetDParam(2, indspec->name);
} else {