(svn r10415) -Revert (r10403), Fix (r10323): 'message from company' test must use {STRING1}, so pass it the correct params

This commit is contained in:
glx
2007-07-03 17:20:17 +00:00
parent f7151d44b7
commit ca87b15098
41 changed files with 42 additions and 41 deletions

View File

@@ -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);