|
@@ -504,13 +504,13 @@ static int DrawRailWagonPurchaseInfo(int
|
|
|
SetDParam(0, weight);
|
|
|
SetDParam(1, (GetCargo(rvi->cargo_type)->weight * GetEngineProperty(engine_number, 0x14, rvi->capacity) >> 4) + weight);
|
|
|
DrawString(x, y, STR_PURCHASE_INFO_WEIGHT_CWEIGHT, TC_FROMSTRING);
|
|
|
y += 10;
|
|
|
|
|
|
/* Wagon speed limit, displayed if above zero */
|
|
|
if (_settings.vehicle.wagon_speed_limits) {
|
|
|
if (_settings_game.vehicle.wagon_speed_limits) {
|
|
|
uint max_speed = GetEngineProperty(engine_number, 0x09, rvi->max_speed);
|
|
|
if (max_speed > 0) {
|
|
|
SetDParam(0, max_speed * 10 / 16);
|
|
|
DrawString(x, y, STR_PURCHASE_INFO_SPEED, TC_FROMSTRING);
|
|
|
y += 10;
|
|
|
}
|
|
@@ -542,13 +542,13 @@ static int DrawRailEnginePurchaseInfo(in
|
|
|
SetDParam(0, GetEngineProperty(engine_number, 0x09, rvi->max_speed) * 10 / 16);
|
|
|
SetDParam(1, GetEngineProperty(engine_number, 0x0B, rvi->power));
|
|
|
DrawString(x, y, STR_PURCHASE_INFO_SPEED_POWER, TC_FROMSTRING);
|
|
|
y += 10;
|
|
|
|
|
|
/* Max tractive effort - not applicable if old acceleration or maglev */
|
|
|
if (_settings.vehicle.realistic_acceleration && rvi->railtype != RAILTYPE_MAGLEV) {
|
|
|
if (_settings_game.vehicle.realistic_acceleration && rvi->railtype != RAILTYPE_MAGLEV) {
|
|
|
SetDParam(0, ((weight << multihead) * 10 * GetEngineProperty(engine_number, 0x1F, rvi->tractive_effort)) / 256);
|
|
|
DrawString(x, y, STR_PURCHASE_INFO_MAX_TE, TC_FROMSTRING);
|
|
|
y += 10;
|
|
|
}
|
|
|
|
|
|
/* Running cost */
|