mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r21120) -Fix (r21096): Use the engine max speed value instead of the savegame value, as the latter could be stored in old units in old savegames.
This commit is contained in:
parent
b1765482d2
commit
c6ad6f52a9
|
@ -544,7 +544,7 @@ void UpdateAircraftCache(Aircraft *v)
|
|||
v->vcache.cached_max_speed = max_speed;
|
||||
} else {
|
||||
/* Use the default max speed of the vehicle. */
|
||||
v->vcache.cached_max_speed = v->max_speed;
|
||||
v->vcache.cached_max_speed = AircraftVehInfo(v->engine_type)->max_speed;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue