diff options
author | PeterN <peter@fuzzle.org> | 2018-05-19 22:05:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-19 22:05:51 +0100 |
commit | cad47bbefe5007a4d6c4e02b2cbc6f69484475f7 (patch) | |
tree | 2b7da28a790c0285b80eab67a2d75e49195ee42d /src | |
parent | 8a7de364639c23d6a08ee07698f7a04b499ccdc5 (diff) | |
download | openttd-cad47bbefe5007a4d6c4e02b2cbc6f69484475f7.tar.xz |
Fix: Tractive effort was slightly too high as per NewGRF spec. (#6785)
Diffstat (limited to 'src')
-rw-r--r-- | src/ground_vehicle.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ground_vehicle.cpp b/src/ground_vehicle.cpp index fcdab77b0..f8efd8e1a 100644 --- a/src/ground_vehicle.cpp +++ b/src/ground_vehicle.cpp @@ -58,8 +58,8 @@ void GroundVehicle<T, Type>::PowerChanged() this->gcache.cached_air_drag = air_drag + 3 * air_drag * number_of_parts / 20; - max_te *= 10000; // Tractive effort in (tonnes * 1000 * 10 =) N. - max_te /= 256; // Tractive effort is a [0-255] coefficient. + max_te *= 9800; // Tractive effort in (tonnes * 1000 * 9.8 =) N. + max_te /= 256; // Tractive effort is a [0-255] coefficient. if (this->gcache.cached_power != total_power || this->gcache.cached_max_te != max_te) { /* Stop the vehicle if it has no power. */ if (total_power == 0) this->vehstatus |= VS_STOPPED; |