src/player_gui.cpp
changeset 7141 39823e423a72
parent 7058 8105bb13ce3d
child 7266 b16e67e992b4
equal deleted inserted replaced
7140:31e79bb57c5b 7141:39823e423a72
   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);