Improved breakdowns patch: fix various issues
* Whitespace/formatting * Fix setting lang string * Fix spelling of VRF_TO_HEAVY
This commit is contained in:
@@ -163,8 +163,11 @@ protected: // These functions should not be called outside acceleration code.
|
||||
if (!this->IsArticulatedPart()) {
|
||||
/* Road vehicle weight is in units of 1/4 t. */
|
||||
weight += GetVehicleProperty(this, PROP_ROADVEH_WEIGHT, RoadVehInfo(this->engine_type)->weight) / 4;
|
||||
//DIRTY HACK
|
||||
if ( !weight ) weight = 1; //at least 1 for realistic accelerate
|
||||
|
||||
/*
|
||||
* TODO: DIRTY HACK: at least 1 for realistic accelerate
|
||||
*/
|
||||
if (weight == 0) weight = 1;
|
||||
}
|
||||
|
||||
return weight;
|
||||
|
Reference in New Issue
Block a user