summaryrefslogtreecommitdiff
path: root/src/main_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
commit8ee9e8bf1e0b7c9fe9e9a41044e52f4e0e973634 (patch)
tree2aea1c963774b012ba0a63a2d9573f247003e6a9 /src/main_gui.cpp
parent4e1e697bc638d89828910fe3bd042d5501f0fd77 (diff)
downloadopenttd-8ee9e8bf1e0b7c9fe9e9a41044e52f4e0e973634.tar.xz
(svn r10323) -Codechange: reference company name, number and player (president) name
by index
Diffstat (limited to 'src/main_gui.cpp')
-rw-r--r--src/main_gui.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/main_gui.cpp b/src/main_gui.cpp
index bd97f17de..e5bbe934d 100644
--- a/src/main_gui.cpp
+++ b/src/main_gui.cpp
@@ -605,9 +605,8 @@ static void PlayerMenuWndProc(Window *w, WindowEvent *e)
DrawPlayerIcon(p->index, x + 2, y + 1);
- SetDParam(0, p->name_1);
- SetDParam(1, p->name_2);
- SetDParam(2, GetPlayerNameString(p->index, 3));
+ SetDParam(0, p->index);
+ SetDParam(1, p->index);
color = (p->index == sel) ? 0xC : 0x10;
if (chk&1) color = 14;
@@ -2227,8 +2226,7 @@ static void StatusBarWndProc(Window *w, WindowEvent *e)
} else {
if (p != NULL) {
/* This is the default text */
- SetDParam(0, p->name_1);
- SetDParam(1, p->name_2);
+ SetDParam(0, p->index);
DrawStringCentered(320, 1, STR_02BA, 0);
}
}