equal
deleted
inserted
replaced
933 static void BuyCompanyWndProc(Window *w, WindowEvent *e) |
933 static void BuyCompanyWndProc(Window *w, WindowEvent *e) |
934 { |
934 { |
935 switch (e->event) { |
935 switch (e->event) { |
936 case WE_PAINT: { |
936 case WE_PAINT: { |
937 Player *p = GetPlayer((PlayerID)w->window_number); |
937 Player *p = GetPlayer((PlayerID)w->window_number); |
938 SetDParam(0, p->index); |
938 SetDParam(0, STR_COMPANY_NAME); |
|
939 SetDParam(1, p->index); |
939 DrawWindowWidgets(w); |
940 DrawWindowWidgets(w); |
940 |
941 |
941 DrawPlayerFace(p->face, p->player_color, 2, 16); |
942 DrawPlayerFace(p->face, p->player_color, 2, 16); |
942 |
943 |
943 SetDParam(0, p->index); |
944 SetDParam(0, p->index); |