(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.
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user