diff options
author | michi_cc <michi_cc@openttd.org> | 2011-01-04 18:12:28 +0000 |
---|---|---|
committer | michi_cc <michi_cc@openttd.org> | 2011-01-04 18:12:28 +0000 |
commit | 868d035b45a10e0a84c2e687bb7229cd4285073d (patch) | |
tree | 82b17c5954e71ce60625ac8bc9b5add5c200eab6 /src/ground_vehicle.cpp | |
parent | 6a38f88bd1f62cfa7a5459dfca670d6f09d4c8f1 (diff) | |
download | openttd-868d035b45a10e0a84c2e687bb7229cd4285073d.tar.xz |
(svn r21712) -Change: Tune 'realistic' acceleration even more to make more trains reach their top speed.
Diffstat (limited to 'src/ground_vehicle.cpp')
-rw-r--r-- | src/ground_vehicle.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ground_vehicle.cpp b/src/ground_vehicle.cpp index 80a43b6a3..cc2360d3f 100644 --- a/src/ground_vehicle.cpp +++ b/src/ground_vehicle.cpp @@ -127,7 +127,7 @@ int GroundVehicle<T, Type>::GetAcceleration() const } /* Air drag; the air drag coefficient is in an arbitrary NewGRF-unit, * so we need some magic conversion factor. */ - resistance += (area * this->gcache.cached_air_drag * speed * speed) / 500; + resistance += (area * this->gcache.cached_air_drag * speed * speed) / 1000; resistance += this->GetSlopeResistance(); @@ -151,7 +151,8 @@ int GroundVehicle<T, Type>::GetAcceleration() const } if (mode == AS_ACCEL) { - return (force - resistance) / (mass * 2); + /* Divide by 4 to compensate for the wacky game scale. */ + return (force - resistance) / (mass * 4); } else { return min(-force - resistance, -10000) / mass; } |