Improved breakdowns: Fix string parameter count issues.
Fix whitespace.
This commit is contained in:
@@ -2613,7 +2613,7 @@ public:
|
||||
} else if (v->breakdown_ctr == 1 || (v->type == VEH_TRAIN && Train::From(v)->flags & VRF_IS_BROKEN)) {
|
||||
if (_settings_game.vehicle.improved_breakdowns) {
|
||||
str = STR_VEHICLE_STATUS_BROKEN_DOWN_VEL;
|
||||
SetDParam(2, v->GetDisplaySpeed());
|
||||
SetDParam(3, v->GetDisplaySpeed());
|
||||
} else {
|
||||
str = STR_VEHICLE_STATUS_BROKEN_DOWN;
|
||||
}
|
||||
@@ -2630,7 +2630,7 @@ public:
|
||||
SetDParam(0, STR_BREAKDOWN_TYPE_CRITICAL + w->breakdown_type);
|
||||
|
||||
if (w->breakdown_type == BREAKDOWN_LOW_SPEED) {
|
||||
SetDParam(1, min( w->First()->GetDisplayMaxSpeed(), w->breakdown_severity >> ((v->type == VEH_TRAIN) ? 0 : 1)));
|
||||
SetDParam(1, min(w->First()->GetDisplayMaxSpeed(), w->breakdown_severity >> ((v->type == VEH_TRAIN) ? 0 : 1)));
|
||||
} else if (w->breakdown_type == BREAKDOWN_LOW_POWER) {
|
||||
int percent;
|
||||
if (v->type == VEH_TRAIN) {
|
||||
|
Reference in New Issue
Block a user