diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/economy.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/economy.cpp b/src/economy.cpp index 6436f0fc0..2736ef23d 100644 --- a/src/economy.cpp +++ b/src/economy.cpp @@ -1212,9 +1212,11 @@ static void LoadUnloadVehicle(Vehicle *v, int *cargo_left) /* update stats */ int t; switch (u->type) { - case VEH_TRAIN: t = Train::From(u)->tcache.cached_max_speed; break; - case VEH_ROAD: t = u->max_speed / 2; break; - default: t = u->max_speed; break; + 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 / 129; break; // convert to old units + default: NOT_REACHED(); } /* if last speed is 0, we treat that as if no vehicle has ever visited the station. */ |