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

pull/155/head
yexo 14 years ago
parent 05920f11f6
commit f8e1732e6d

@ -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…
Cancel
Save