summaryrefslogtreecommitdiff
path: root/players.c
diff options
context:
space:
mode:
authorludde <ludde@openttd.org>2005-07-15 18:30:13 +0000
committerludde <ludde@openttd.org>2005-07-15 18:30:13 +0000
commit3486e7e9d5d24e2e0595b7a8d517581b926b85cd (patch)
tree77cbbb71361c4ceb1306dc06c65b6364221d6c2f /players.c
parent157addf5e9d85e513355edb97d513443ba9c131f (diff)
downloadopenttd-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 'players.c')
-rw-r--r--players.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/players.c b/players.c
index 026bed851..8892d39f8 100644
--- a/players.c
+++ b/players.c
@@ -262,8 +262,8 @@ void GetNameOfOwner(byte owner, TileIndex tile)
}
} else {
Town *t = ClosestTownFromTile(tile, (uint)-1);
- SetDParam(0, t->townnametype);
- SetDParam(1, t->townnameparts);
+ SetDParam(0, STR_TOWN);
+ SetDParam(1, t->index);
}
}