diff options
author | ludde <ludde@openttd.org> | 2005-07-15 18:30:13 +0000 |
---|---|---|
committer | ludde <ludde@openttd.org> | 2005-07-15 18:30:13 +0000 |
commit | 3486e7e9d5d24e2e0595b7a8d517581b926b85cd (patch) | |
tree | 77cbbb71361c4ceb1306dc06c65b6364221d6c2f /town_cmd.c | |
parent | 157addf5e9d85e513355edb97d513443ba9c131f (diff) | |
download | openttd-3486e7e9d5d24e2e0595b7a8d517581b926b85cd.tar.xz |
(svn r2580) Change: Added {INDUSTRY} command for printing industry names instead of the old {TOWN} {STRING} way.
- The formatting of the industry name can be controlled with the string STR_INDUSTRY_FORMAT.
Change: Changed several occurences of {STRING1} into {TOWN} to get rid of townnametype being used directly.
Diffstat (limited to 'town_cmd.c')
-rw-r--r-- | town_cmd.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/town_cmd.c b/town_cmd.c index 788765374..56413df66 100644 --- a/town_cmd.c +++ b/town_cmd.c @@ -221,10 +221,10 @@ void UpdateTownVirtCoord(Town *t) MarkTownSignDirty(t); pt = RemapCoords2(TileX(t->xy) * 16, TileY(t->xy) * 16); - SetDParam(0, t->townnametype); - SetDParam(1, t->townnameparts); - SetDParam(2, t->population); - UpdateViewportSignPos(&t->sign, pt.x, pt.y - 24, _patches.population_in_label ? STR_TOWN_LABEL_POP : STR_2001); + SetDParam(0, t->index); + SetDParam(1, t->population); + UpdateViewportSignPos(&t->sign, pt.x, pt.y - 24, + _patches.population_in_label ? STR_TOWN_LABEL_POP : STR_TOWN_LABEL); MarkTownSignDirty(t); } @@ -911,8 +911,8 @@ restart: if (t2->xy != 0) { // We can't just compare the numbers since // several numbers may map to a single name. - SetDParam(0, t2->townnameparts); - GetString(buf2, t2->townnametype); + SetDParam(0, t2->index); + GetString(buf2, STR_TOWN); if (strcmp(buf1, buf2) == 0) { if (tries-- < 0) return false; |