(svn r20302) -Add: Method for getting the air drag of a ground vehicle.

This commit is contained in:
terkhen
2010-08-02 14:52:51 +00:00
parent 8203749e68
commit 7d0297f967
3 changed files with 19 additions and 0 deletions

View File

@@ -441,6 +441,15 @@ protected: // These functions should not be called outside acceleration code.
return 120;
}
/**
* Gets the air drag coefficient of this vehicle.
* @return Air drag value from the engine.
*/
FORCEINLINE byte GetAirDrag() const
{
return RailVehInfo(this->engine_type)->air_drag;
}
/**
* Checks the current acceleration status of this vehicle.
* @return Acceleration status.