diff options
author | peter1138 <peter1138@openttd.org> | 2006-11-05 22:11:12 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-11-05 22:11:12 +0000 |
commit | 6f1550b6520f0c207c7a88bc22eb838aa385da43 (patch) | |
tree | cf9821892e72126f5908836ce1317ec046f53596 | |
parent | 6aa0c247c8c923081684dacf7a4eecebc26a06f7 (diff) | |
download | openttd-6f1550b6520f0c207c7a88bc22eb838aa385da43.tar.xz |
(svn r7072) -Fix (r7070): Go up, not down, through the engines. And replace the comment too...
-rw-r--r-- | ai/trolly/build.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ai/trolly/build.c b/ai/trolly/build.c index 1259d4c9a..9c73cc0e2 100644 --- a/ai/trolly/build.c +++ b/ai/trolly/build.c @@ -238,8 +238,8 @@ EngineID AiNew_PickVehicle(Player *p) EngineID end = ROAD_ENGINES_INDEX + NUM_ROAD_ENGINES; EngineID i; - // Let's check it backwards.. we simply want to best engine available.. - for (i = start; i != end; i--) { + /* Loop through all road vehicles */ + for (i = start; i != end; i++) { const RoadVehicleInfo *rvi = RoadVehInfo(i); const Engine* e = GetEngine(i); int32 rating; |