forked from mirror/OpenTTD
(svn r20302) -Add: Method for getting the air drag of a ground vehicle.
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user