File diff r5029:882351296219 → r5030:067ed9eaf7e8
ai/trolly/build.c
Show inline comments
 
@@ -235,14 +235,14 @@ EngineID AiNew_PickVehicle(Player *p)
 
		EngineID best_veh_index = INVALID_ENGINE;
 
		int32 best_veh_rating = 0;
 
		EngineID start = ROAD_ENGINES_INDEX;
 
		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;
 
			int32 ret;
 

	
 
			/* Skip vehicles which can't take our cargo type */