ship_gui.c
changeset 5071 e28106dfcb6f
parent 5070 7f5b13b7e728
child 5078 b9fb462c82f2
equal deleted inserted replaced
5070:7f5b13b7e728 5071:e28106dfcb6f
   215 	Window *w;
   215 	Window *w;
   216 	VehicleID veh = v->index;
   216 	VehicleID veh = v->index;
   217 
   217 
   218 	DeleteWindowById(WC_VEHICLE_ORDERS, veh);
   218 	DeleteWindowById(WC_VEHICLE_ORDERS, veh);
   219 	DeleteWindowById(WC_VEHICLE_DETAILS, veh);
   219 	DeleteWindowById(WC_VEHICLE_DETAILS, veh);
   220 	_alloc_wnd_parent_num = veh;
   220 	w = AllocateWindowDescFront(&_ship_details_desc, veh);
   221 	w = AllocateWindowDesc(&_ship_details_desc);
       
   222 	w->window_number = veh;
       
   223 	w->caption_color = v->owner;
   221 	w->caption_color = v->owner;
   224 }
   222 }
   225 
   223 
   226 void CcBuildShip(bool success, TileIndex tile, uint32 p1, uint32 p2)
   224 void CcBuildShip(bool success, TileIndex tile, uint32 p1, uint32 p2)
   227 {
   225 {