(svn r21095) -Codechange: Use a function to convert aircraft speed to old units.

This commit is contained in:
terkhen
2010-11-06 12:47:12 +00:00
parent 609e6dae3f
commit cfac2ced69
3 changed files with 16 additions and 3 deletions

View File

@@ -1231,7 +1231,7 @@ static void LoadUnloadVehicle(Vehicle *v, int *cargo_left)
case VEH_TRAIN: t = Train::From(u)->tcache.cached_max_speed; break;
case VEH_ROAD: t = u->max_speed / 2; break;
case VEH_SHIP: t = u->max_speed; break;
case VEH_AIRCRAFT: t = u->max_speed * 10 / 128; break; // convert to old units
case VEH_AIRCRAFT: t = Aircraft::From(u)->GetSpeedOldUnits(); break; // Convert to old units.
default: NOT_REACHED();
}