Mercurial > hg > openttd
changeset 13052:6dba8bf1c036 draft
(svn r17550) -Fix (r8973): Aircraft are good enough, don't make them even better.
author | frosch <frosch@openttd.org> |
---|---|
date | Tue, 15 Sep 2009 19:56:41 +0000 |
parents | 828b43ca3092 |
children | a65b1859dfcd |
files | src/economy.cpp |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/economy.cpp +++ b/src/economy.cpp @@ -1212,9 +1212,11 @@ /* 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. */