Changeset - r5030:067ed9eaf7e8
[Not reviewed]
master
0 1 0
peter1138 - 18 years ago 2006-11-05 22:11:12
peter1138@openttd.org
(svn r7072) -Fix (r7070): Go up, not down, through the engines. And replace the comment too...
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
ai/trolly/build.c
Show inline comments
 
@@ -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;
0 comments (0 inline, 0 general)