diff options
author | peter1138 <peter1138@openttd.org> | 2007-06-25 13:30:38 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2007-06-25 13:30:38 +0000 |
commit | eb6594caa840da0b4d8a16154cc2c0353d3eb238 (patch) | |
tree | 2aea1c963774b012ba0a63a2d9573f247003e6a9 /src/graph_gui.cpp | |
parent | 0e59b4dc57b52f6c13df258f9d9c6263f53d68dd (diff) | |
download | openttd-eb6594caa840da0b4d8a16154cc2c0353d3eb238.tar.xz |
(svn r10323) -Codechange: reference company name, number and player (president) name
by index
Diffstat (limited to 'src/graph_gui.cpp')
-rw-r--r-- | src/graph_gui.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/graph_gui.cpp b/src/graph_gui.cpp index bf4b3aa52..1e5d84580 100644 --- a/src/graph_gui.cpp +++ b/src/graph_gui.cpp @@ -270,9 +270,8 @@ static void GraphLegendWndProc(Window *w, WindowEvent *e) DrawPlayerIcon(p->index, 4, 18 + p->index * 12); - SetDParam(0, p->name_1); - SetDParam(1, p->name_2); - SetDParam(2, GetPlayerNameString(p->index, 3)); + SetDParam(0, p->index); + SetDParam(1, p->index); DrawString(21, 17 + p->index * 12, STR_7021, HASBIT(_legend_excluded_players, p->index) ? 0x10 : 0xC); } break; @@ -875,10 +874,9 @@ static void CompanyLeagueWndProc(Window *w, WindowEvent *e) for (uint i = 0; i != pl_num; i++) { p = plist[i]; SetDParam(0, i + STR_01AC_1ST); - SetDParam(1, p->name_1); - SetDParam(2, p->name_2); - SetDParam(3, GetPlayerNameString(p->index, 4)); - SetDParam(5, GetPerformanceTitleFromValue(p->old_economy[1].performance_history)); + SetDParam(1, p->index); + SetDParam(2, p->index); + SetDParam(3, 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); |