src/aircraft_gui.cpp
changeset 6519 367d6f96e23f
parent 6443 b8f06d8eb7be
child 6524 44e22a9b2c97
equal deleted inserted replaced
6518:c7ac357020e3 6519:367d6f96e23f
    82 			DrawString(2, 15, STR_A00D_AGE_RUNNING_COST_YR, 0);
    82 			DrawString(2, 15, STR_A00D_AGE_RUNNING_COST_YR, 0);
    83 		}
    83 		}
    84 
    84 
    85 		/* Draw max speed */
    85 		/* Draw max speed */
    86 		{
    86 		{
    87 			SetDParam(0, v->max_speed * 128 / 10);
    87 			SetDParam(0, v->max_speed * 10 / 16);
    88 			DrawString(2, 25, STR_A00E_MAX_SPEED, 0);
    88 			DrawString(2, 25, STR_A00E_MAX_SPEED, 0);
    89 		}
    89 		}
    90 
    90 
    91 		/* Draw profit */
    91 		/* Draw profit */
    92 		{
    92 		{
   261 			str = STR_8861_STOPPED;
   261 			str = STR_8861_STOPPED;
   262 		} else {
   262 		} else {
   263 			switch (v->current_order.type) {
   263 			switch (v->current_order.type) {
   264 			case OT_GOTO_STATION: {
   264 			case OT_GOTO_STATION: {
   265 				SetDParam(0, v->current_order.dest);
   265 				SetDParam(0, v->current_order.dest);
   266 				SetDParam(1, v->cur_speed * 8);
   266 				SetDParam(1, v->cur_speed * 10 / 16);
   267 				str = STR_HEADING_FOR_STATION + _patches.vehicle_speed;
   267 				str = STR_HEADING_FOR_STATION + _patches.vehicle_speed;
   268 			} break;
   268 			} break;
   269 
   269 
   270 			case OT_GOTO_DEPOT: {
   270 			case OT_GOTO_DEPOT: {
   271 				/* Aircrafts always go to a station, even if you say depot */
   271 				/* Aircrafts always go to a station, even if you say depot */
   272 				SetDParam(0, v->current_order.dest);
   272 				SetDParam(0, v->current_order.dest);
   273 				SetDParam(1, v->cur_speed * 8);
   273 				SetDParam(1, v->cur_speed * 10 / 16);
   274 				if (HASBIT(v->current_order.flags, OFB_HALT_IN_DEPOT) && !HASBIT(v->current_order.flags, OFB_PART_OF_ORDERS)) {
   274 				if (HASBIT(v->current_order.flags, OFB_HALT_IN_DEPOT) && !HASBIT(v->current_order.flags, OFB_PART_OF_ORDERS)) {
   275 					str = STR_HEADING_FOR_HANGAR + _patches.vehicle_speed;
   275 					str = STR_HEADING_FOR_HANGAR + _patches.vehicle_speed;
   276 				} else {
   276 				} else {
   277 					str = STR_HEADING_FOR_HANGAR_SERVICE + _patches.vehicle_speed;
   277 					str = STR_HEADING_FOR_HANGAR_SERVICE + _patches.vehicle_speed;
   278 				}
   278 				}
   283 				break;
   283 				break;
   284 
   284 
   285 			default:
   285 			default:
   286 				if (v->num_orders == 0) {
   286 				if (v->num_orders == 0) {
   287 					str = STR_NO_ORDERS + _patches.vehicle_speed;
   287 					str = STR_NO_ORDERS + _patches.vehicle_speed;
   288 					SetDParam(0, v->cur_speed * 8);
   288 					SetDParam(0, v->cur_speed * 10 / 16);
   289 				} else {
   289 				} else {
   290 					str = STR_EMPTY;
   290 					str = STR_EMPTY;
   291 				}
   291 				}
   292 				break;
   292 				break;
   293 			}
   293 			}