diff options
author | glx <glx@openttd.org> | 2007-07-03 17:20:17 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2007-07-03 17:20:17 +0000 |
commit | 53ab57cbe4a068512b14b86028bf9b599426ce01 (patch) | |
tree | d0d69c023c278dc9d2adbe495743574349689d1b /src/player_gui.cpp | |
parent | 95d2abf81d574d2897c06ca3278f3c6f4a9a8ba3 (diff) | |
download | openttd-53ab57cbe4a068512b14b86028bf9b599426ce01.tar.xz |
(svn r10415) -Revert (r10403), Fix (r10323): 'message from company' test must use {STRING1}, so pass it the correct params
Diffstat (limited to 'src/player_gui.cpp')
-rw-r--r-- | src/player_gui.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/player_gui.cpp b/src/player_gui.cpp index 9852f3b65..b753034b8 100644 --- a/src/player_gui.cpp +++ b/src/player_gui.cpp @@ -935,7 +935,8 @@ static void BuyCompanyWndProc(Window *w, WindowEvent *e) switch (e->event) { case WE_PAINT: { Player *p = GetPlayer((PlayerID)w->window_number); - SetDParam(0, p->index); + SetDParam(0, STR_COMPANY_NAME); + SetDParam(1, p->index); DrawWindowWidgets(w); DrawPlayerFace(p->face, p->player_color, 2, 16); |