summaryrefslogtreecommitdiff
path: root/src/newgrf.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2013-03-22 21:27:13 +0000
committerfrosch <frosch@openttd.org>2013-03-22 21:27:13 +0000
commit30f601d685196464cb86b32f2f3f2b13019f0735 (patch)
treec5a2834af593e935abc6c6426861a5f1b2edc66f /src/newgrf.cpp
parent9eab26a1a1bdccb4da54f598e861f029aa72f41f (diff)
downloadopenttd-30f601d685196464cb86b32f2f3f2b13019f0735.tar.xz
(svn r25115) -Fix (r8973) [FS#5492-ish]: [NewGRF] Acceleration of NewGRF aircraft was too fast, while acceleration of default aircraft was way too slow. I.e. choose wisely who to let write the software for your orbiter.
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r--src/newgrf.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index 848903324..854ad165e 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -1618,15 +1618,9 @@ static ChangeInfoResult AircraftVehicleChangeInfo(uint engine, int numinfo, int
avi->max_speed = (buf->ReadByte() * 128) / 10;
break;
- case 0x0D: { // Acceleration
- uint acceleration = (buf->ReadByte() * 128) / 10;
- if (acceleration > UINT8_MAX) {
- grfmsg(1, "Acceleration property of aircraft %d is too big.", engine + i);
- acceleration = UINT8_MAX;
- }
- avi->acceleration = acceleration;
+ case 0x0D: // Acceleration
+ avi->acceleration = buf->ReadByte();
break;
- }
case PROP_AIRCRAFT_RUNNING_COST_FACTOR: // 0x0E Running cost factor
avi->running_cost = buf->ReadByte();