diff options
author | terkhen <terkhen@openttd.org> | 2010-11-06 12:45:40 +0000 |
---|---|---|
committer | terkhen <terkhen@openttd.org> | 2010-11-06 12:45:40 +0000 |
commit | 609e6dae3fbdace3c753456268eec6dbd0df2db2 (patch) | |
tree | a3e237994aa8148ceee98794d4a97533a6154b8b /src/aircraft_cmd.cpp | |
parent | 5f72460cac353a9bf75d0158a48d8eb102fed9f7 (diff) | |
download | openttd-609e6dae3fbdace3c753456268eec6dbd0df2db2.tar.xz |
(svn r21094) -Fix: Aircraft speed would ignore callback 36 result when it is greater than the engine speed.
Diffstat (limited to 'src/aircraft_cmd.cpp')
-rw-r--r-- | src/aircraft_cmd.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp index 217d297ee..7f389c6e3 100644 --- a/src/aircraft_cmd.cpp +++ b/src/aircraft_cmd.cpp @@ -574,8 +574,6 @@ static int UpdateAircraftSpeed(Aircraft *v, uint speed_limit = SPEED_LIMIT_NONE, speed_limit = v->acache.cached_max_speed; } - speed_limit = min(speed_limit, v->max_speed); - v->subspeed = (t = v->subspeed) + (byte)spd; /* Aircraft's current speed is used twice so that very fast planes are |