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 | 7ab311cd693622059de4161b31008fa6d866bba5 (patch) | |
tree | cf9821892e72126f5908836ce1317ec046f53596 /ai/trolly | |
parent | 6f290da2008132e35ffad6d17728791084fe3a66 (diff) | |
download | openttd-7ab311cd693622059de4161b31008fa6d866bba5.tar.xz |
(svn r7072) -Fix (r7070): Go up, not down, through the engines. And replace the comment too...
Diffstat (limited to 'ai/trolly')
-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; |