summaryrefslogtreecommitdiff
path: root/src/ground_vehicle.cpp
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2010-03-06 12:50:55 +0000
committerterkhen <terkhen@openttd.org>2010-03-06 12:50:55 +0000
commit4e6cac84d6d30ea07fe7035f76085f8b0b55df78 (patch)
treeb16c3b54612de1357bcd3859fbab8dc183990617 /src/ground_vehicle.cpp
parent1c3b7c35a7efbd05da32c97d0a6b4fc49fed087a (diff)
downloadopenttd-4e6cac84d6d30ea07fe7035f76085f8b0b55df78.tar.xz
(svn r19341) -Codechange: Move GOINGUP/GOINGDOWN flags to GroundVehicle.
-Codechange: Move GetSlopeResistance to GroundVehicle.
Diffstat (limited to 'src/ground_vehicle.cpp')
-rw-r--r--src/ground_vehicle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ground_vehicle.cpp b/src/ground_vehicle.cpp
index 1ab6da9da..92c135ee5 100644
--- a/src/ground_vehicle.cpp
+++ b/src/ground_vehicle.cpp
@@ -116,7 +116,7 @@ int GroundVehicle<T, Type>::GetAcceleration() const
resistance += (area * this->acc_cache.cached_air_drag * speed * speed) / 20000;
}
- resistance += v->GetSlopeResistance();
+ resistance += this->GetSlopeResistance();
resistance *= 4; //[N]
/* This value allows to know if the vehicle is accelerating or braking. */