(svn r20299) -Add: Make trains and road vehicles use a different area value to calculate air drag.

This commit is contained in:
terkhen
2010-08-02 14:49:23 +00:00
parent 14d58e9978
commit 1fd66d7cc4
4 changed files with 20 additions and 1 deletions

View File

@@ -432,6 +432,15 @@ protected: // These functions should not be called outside acceleration code.
return GetVehicleProperty(this, PROP_TRAIN_TRACTIVE_EFFORT, RailVehInfo(this->engine_type)->tractive_effort);
}
/**
* Gets the area used for calculating air drag.
* @return Area of the engine.
*/
FORCEINLINE byte GetAirDragArea() const
{
return 120;
}
/**
* Checks the current acceleration status of this vehicle.
* @return Acceleration status.