summaryrefslogtreecommitdiff
path: root/graph_gui.c
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2004-08-10 14:32:17 +0000
committerdarkvater <darkvater@openttd.org>2004-08-10 14:32:17 +0000
commite4940ebc79149fee171d11ed33e10a810a25c379 (patch)
tree03ce1cb2a09c5888b5066489b8d20d5ec39d561d /graph_gui.c
parent804f038594ccd7d12b776299038f9bc5809f90e5 (diff)
downloadopenttd-e4940ebc79149fee171d11ed33e10a810a25c379.tar.xz
(svn r3) -[1005611] Player Window patch: When looking in dropdownlist for player stuff, it will say
for all human players (Player #), not only for the first 2
Diffstat (limited to 'graph_gui.c')
-rw-r--r--graph_gui.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/graph_gui.c b/graph_gui.c
index 5c7ba69ec..f0ae98eab 100644
--- a/graph_gui.c
+++ b/graph_gui.c
@@ -212,7 +212,7 @@ static void GraphLegendWndProc(Window *w, WindowEvent *e)
SET_DPARAM16(0, p->name_1);
SET_DPARAM32(1, p->name_2);
- SET_DPARAM16(2, GetPlayerNameString(p->index));
+ SET_DPARAM16(2, GetPlayerNameString(p->index, 3));
DrawString(21,17+p->index*12,STR_7021,HASBIT(_legend_showbits, p->index) ? 0x10 : 0xC);
}
break;
@@ -823,8 +823,8 @@ static void CompanyLeagueWndProc(Window *w, WindowEvent *e)
SET_DPARAM16(1, p->name_1);
SET_DPARAM32(2, p->name_2);
- SET_DPARAM16(3, GetPlayerNameString(p->index));
- SET_DPARAM16(4, GetPerformanceTitleFromValue(p->old_economy[1].performance_history));
+ SET_DPARAM16(3, GetPlayerNameString(p->index, 4));
+ SET_DPARAM16(5, GetPerformanceTitleFromValue(p->old_economy[1].performance_history));
DrawString(2, 15 + i * 10, i == 0 ? STR_7054 : STR_7055, 0);
DrawPlayerIcon(p->index, 27, 16 + i * 10);