aircraft_gui.c
changeset 4524 3d2786df6ffd
parent 4506 0d8fcc0a4e49
child 4527 b18634a31a4a
equal deleted inserted replaced
4523:1840644cce24 4524:3d2786df6ffd
  1037 			w = AllocateWindowDescFront(&_other_player_aircraft_desc, (station << 16) | (VEH_Aircraft << 11) | VLW_flag | player);
  1037 			w = AllocateWindowDescFront(&_other_player_aircraft_desc, (station << 16) | (VEH_Aircraft << 11) | VLW_flag | player);
  1038 		}
  1038 		}
  1039 	}
  1039 	}
  1040 
  1040 
  1041 	if (w != NULL) {
  1041 	if (w != NULL) {
  1042 		vehiclelist_d *vl = &WP(w, vehiclelist_d);
       
  1043 		vl->flags = VL_REBUILD | (_sorting.aircraft.order << (VL_DESC - 1));
       
  1044 		vl->sort_type = _sorting.aircraft.criteria;
       
  1045 
       
  1046 		w->caption_color = player;
       
  1047 		w->vscroll.cap = 4;
  1042 		w->vscroll.cap = 4;
  1048 		w->widget[7].unkA = (w->vscroll.cap << 8) + 1;
  1043 		w->widget[7].unkA = (w->vscroll.cap << 8) + 1;
  1049 		w->resize.step_height = PLY_WND_PRC__SIZE_OF_ROW_BIG;
  1044 		w->resize.step_height = PLY_WND_PRC__SIZE_OF_ROW_BIG;
  1050 	}
  1045 	}
  1051 }
  1046 }