From cad47bbefe5007a4d6c4e02b2cbc6f69484475f7 Mon Sep 17 00:00:00 2001 From: PeterN Date: Sat, 19 May 2018 22:05:51 +0100 Subject: Fix: Tractive effort was slightly too high as per NewGRF spec. (#6785) --- src/ground_vehicle.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ground_vehicle.cpp') 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::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; -- cgit v1.2.3-54-g00ecf