mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-03 21:06:58 +00:00
(svn r19660) -Feature: [NewGRF] support cb36 for aircraft speed also in the build menu
This commit is contained in:
parent
6cf4afad14
commit
9a2e53e803
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user