(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 094841cba3
commit f33a0370ae
4 changed files with 20 additions and 1 deletions

View File

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