summaryrefslogtreecommitdiff
path: root/src/roadveh.h
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2010-08-02 14:49:23 +0000
committerterkhen <terkhen@openttd.org>2010-08-02 14:49:23 +0000
commit1fd66d7cc489702557208a9d27c75ba9355e39fa (patch)
treef6bfbee0d3aff5cc46cb16f88a8246117c8f349b /src/roadveh.h
parent14d58e997894190747fbe8bed20f9ddc73feef06 (diff)
downloadopenttd-1fd66d7cc489702557208a9d27c75ba9355e39fa.tar.xz
(svn r20299) -Add: Make trains and road vehicles use a different area value to calculate air drag.
Diffstat (limited to 'src/roadveh.h')
-rw-r--r--src/roadveh.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/roadveh.h b/src/roadveh.h
index 6af7425b4..5a5ee549b 100644
--- a/src/roadveh.h
+++ b/src/roadveh.h
@@ -210,6 +210,15 @@ protected: // These functions should not be called outside acceleration code.
return RoadVehInfo(this->engine_type)->tractive_effort;
}
+ /**
+ * Gets the area used for calculating air drag.
+ * @return Area of the engine.
+ */
+ FORCEINLINE byte GetAirDragArea() const
+ {
+ return 60;
+ }
+
/**
* Checks the current acceleration status of this vehicle.
* @return Acceleration status.