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/ground_vehicle.cpp | |
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/ground_vehicle.cpp')
-rw-r--r-- | src/ground_vehicle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ground_vehicle.cpp b/src/ground_vehicle.cpp index 395f0c26b..6ccba6aa7 100644 --- a/src/ground_vehicle.cpp +++ b/src/ground_vehicle.cpp @@ -107,7 +107,7 @@ int GroundVehicle<T, Type>::GetAcceleration() const bool maglev = v->GetAccelerationType() == 2; - const int area = 120; + const int area = v->GetAirDragArea(); if (!maglev) { resistance = (13 * mass) / 10; resistance += this->acc_cache.cached_axle_resistance; |