src/build_vehicle_gui.cpp
branchcpp_gui
changeset 6285 187e3ef04cc9
parent 6268 4b5241e5dd10
child 6298 c30fe89622df
equal deleted inserted replaced
6284:45d0233e7d79 6285:187e3ef04cc9
   492 {
   492 {
   493 	CargoID cargo;
   493 	CargoID cargo;
   494 
   494 
   495 	/* Purchase cost - Max speed */
   495 	/* Purchase cost - Max speed */
   496 	SetDParam(0, avi->base_cost * (_price.aircraft_base>>3)>>5);
   496 	SetDParam(0, avi->base_cost * (_price.aircraft_base>>3)>>5);
   497 	SetDParam(1, avi->max_speed * 8);
   497 	SetDParam(1, avi->max_speed * 10 / 16);
   498 	DrawString(x, y, STR_PURCHASE_INFO_COST_SPEED, 0);
   498 	DrawString(x, y, STR_PURCHASE_INFO_COST_SPEED, 0);
   499 	y += 10;
   499 	y += 10;
   500 
   500 
   501 	/* Cargo capacity */
   501 	/* Cargo capacity */
   502 	cargo = FindFirstRefittableCargo(engine_number);
   502 	cargo = FindFirstRefittableCargo(engine_number);