diff options
author | frosch <frosch@openttd.org> | 2009-09-15 19:56:41 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-09-15 19:56:41 +0000 |
commit | 28f759f90599b419080aebd7b697fb4e9a809fce (patch) | |
tree | 6544eeed9de28a096d5ee1c8bf02fcfb27a48315 /src | |
parent | c254021af489bec0cc6a4707fcb0ee6724a2dc78 (diff) | |
download | openttd-28f759f90599b419080aebd7b697fb4e9a809fce.tar.xz |
(svn r17550) -Fix (r8973): Aircraft are good enough, don't make them even better.
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. */ |