summaryrefslogtreecommitdiff
path: root/src/town_gui.cpp
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2007-06-25 13:30:38 +0000
committerpeter1138 <peter1138@openttd.org>2007-06-25 13:30:38 +0000
commiteb6594caa840da0b4d8a16154cc2c0353d3eb238 (patch)
tree2aea1c963774b012ba0a63a2d9573f247003e6a9 /src/town_gui.cpp
parent0e59b4dc57b52f6c13df258f9d9c6263f53d68dd (diff)
downloadopenttd-eb6594caa840da0b4d8a16154cc2c0353d3eb238.tar.xz
(svn r10323) -Codechange: reference company name, number and player (president) name
by index
Diffstat (limited to 'src/town_gui.cpp')
-rw-r--r--src/town_gui.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/town_gui.cpp b/src/town_gui.cpp
index e4cc8a789..7e927e55c 100644
--- a/src/town_gui.cpp
+++ b/src/town_gui.cpp
@@ -127,9 +127,8 @@ static void TownAuthorityWndProc(Window *w, WindowEvent *e)
if (p->is_active && (HASBIT(t->have_ratings, p->index) || t->exclusivity == p->index)) {
DrawPlayerIcon(p->index, 2, y);
- SetDParam(0, p->name_1);
- SetDParam(1, p->name_2);
- SetDParam(2, GetPlayerNameString(p->index, 3));
+ SetDParam(0, p->index);
+ SetDParam(1, p->index);
r = t->ratings[p->index];
(str = STR_3035_APPALLING, r <= RATING_APPALLING) || // Apalling
@@ -141,7 +140,7 @@ static void TownAuthorityWndProc(Window *w, WindowEvent *e)
(str++, r <= RATING_EXCELLENT) || // Excellent
(str++, true); // Outstanding
- SetDParam(4, str);
+ SetDParam(2, str);
if (t->exclusivity == p->index) { // red icon for player with exclusive rights
DrawSprite(SPR_BLOT, PALETTE_TO_RED, 18, y);
}