diff options
author | terkhen <terkhen@openttd.org> | 2010-08-02 14:49:23 +0000 |
---|---|---|
committer | terkhen <terkhen@openttd.org> | 2010-08-02 14:49:23 +0000 |
commit | 1fd66d7cc489702557208a9d27c75ba9355e39fa (patch) | |
tree | f6bfbee0d3aff5cc46cb16f88a8246117c8f349b /src/train.h | |
parent | 14d58e997894190747fbe8bed20f9ddc73feef06 (diff) | |
download | openttd-1fd66d7cc489702557208a9d27c75ba9355e39fa.tar.xz |
(svn r20299) -Add: Make trains and road vehicles use a different area value to calculate air drag.
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 a43b0747c..84bb88e30 100644 --- a/src/train.h +++ b/src/train.h @@ -433,6 +433,15 @@ protected: // These functions should not be called outside acceleration code. } /** + * Gets the area used for calculating air drag. + * @return Area of the engine. + */ + FORCEINLINE byte GetAirDragArea() const + { + return 120; + } + + /** * Checks the current acceleration status of this vehicle. * @return Acceleration status. */ |