Import Improved Breakdowns patch
Fix trailing whitespace http://www.tt-forums.net/viewtopic.php?p=1146419#p1146419
This commit is contained in:

committed by
Jonathan G Rennison

parent
c8a727d3fc
commit
9f5164b403
@@ -163,6 +163,8 @@ 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
|
||||
}
|
||||
|
||||
return weight;
|
||||
|
Reference in New Issue
Block a user