summaryrefslogtreecommitdiff
path: root/src/newgrf.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-07-16 17:45:34 +0000
committerrubidium <rubidium@openttd.org>2010-07-16 17:45:34 +0000
commite809c05099b09bab8f23a4307e0088247478770c (patch)
tree7d9440f06e05022e329571cb5e22d6294fab6da9 /src/newgrf.cpp
parent615e7ce38b49d7b76067115ad8444a18a2c7ee20 (diff)
downloadopenttd-e809c05099b09bab8f23a4307e0088247478770c.tar.xz
(svn r20164) -Fix [FS#3870]: inconsistencies w.r.t. to km/h vs km-ish/h as "base" unit for aircraft speeds
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r--src/newgrf.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index 3e4e95b5b..8c4fe36b0 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -1034,12 +1034,12 @@ static ChangeInfoResult AircraftVehicleChangeInfo(uint engine, int numinfo, int
avi->cost_factor = buf->ReadByte();
break;
- case PROP_AIRCRAFT_SPEED: // 0x0C Speed (1 unit is 8 mph, we translate to 1 unit is 1 km/h)
- avi->max_speed = (buf->ReadByte() * 129) / 10;
+ case PROP_AIRCRAFT_SPEED: // 0x0C Speed (1 unit is 8 mph, we translate to 1 unit is 1 km-ish/h)
+ avi->max_speed = (buf->ReadByte() * 128) / 10;
break;
case 0x0D: // Acceleration
- avi->acceleration = (buf->ReadByte() * 129) / 10;
+ avi->acceleration = (buf->ReadByte() * 128) / 10;
break;
case PROP_AIRCRAFT_RUNNING_COST_FACTOR: // 0x0E Running cost factor