diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/engine.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/engine.cpp b/src/engine.cpp index 1381dbb14..e0611eccb 100644 --- a/src/engine.cpp +++ b/src/engine.cpp @@ -290,8 +290,13 @@ uint Engine::GetDisplayMaxSpeed() const case VEH_SHIP: return GetEngineProperty(this->index, PROP_SHIP_SPEED, this->u.ship.max_speed) / 2; - case VEH_AIRCRAFT: + case VEH_AIRCRAFT: { + uint max_speed = GetEngineProperty(this->index, PROP_AIRCRAFT_SPEED, 0); + if (max_speed != 0) { + return (max_speed * 129) / 10; + } return this->u.air.max_speed; + } default: NOT_REACHED(); } |