(svn r19660) -Feature: [NewGRF] support cb36 for aircraft speed also in the build menu

This commit is contained in:
yexo 2010-04-17 17:45:44 +00:00
parent 6cf4afad14
commit 9a2e53e803
1 changed files with 6 additions and 1 deletions

View File

@ -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();
}