src/player_gui.cpp
branchnoai
changeset 9631 8a2d1c2ceb88
parent 9629 66dde6412125
child 9686 d3c195c226f9
equal deleted inserted replaced
9630:550db5cefcc2 9631:8a2d1c2ceb88
   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);