diff options
Diffstat (limited to 'src/roadveh.h')
-rw-r--r-- | src/roadveh.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/roadveh.h b/src/roadveh.h index 5a5ee549b..9459f3816 100644 --- a/src/roadveh.h +++ b/src/roadveh.h @@ -220,6 +220,15 @@ protected: // These functions should not be called outside acceleration code. } /** + * Gets the air drag coefficient of this vehicle. + * @return Air drag value from the engine. + */ + FORCEINLINE byte GetAirDrag() const + { + return RoadVehInfo(this->engine_type)->air_drag; + } + + /** * Checks the current acceleration status of this vehicle. * @return Acceleration status. */ |