diff options
Diffstat (limited to 'src/train.h')
-rw-r--r-- | src/train.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/train.h b/src/train.h index 84bb88e30..6cb7e5888 100644 --- a/src/train.h +++ b/src/train.h @@ -442,6 +442,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 RailVehInfo(this->engine_type)->air_drag; + } + + /** * Checks the current acceleration status of this vehicle. * @return Acceleration status. */ |