(svn r12451) -Codechange: use of FOR_ALL_ENGINES/ENGINEIDS_OF_TYPE instead of for-loops
This commit is contained in:
		| @@ -2460,7 +2460,7 @@ static EngineID AiFindBestWagon(CargoID cargo, RailType railtype) | ||||
| 	uint16 best_speed    = 0; | ||||
| 	uint speed; | ||||
|  | ||||
| 	for (i = 0; i < NUM_TRAIN_ENGINES; i++) { | ||||
| 	FOR_ALL_ENGINEIDS_OF_TYPE(i, VEH_TRAIN) { | ||||
| 		const RailVehicleInfo *rvi = RailVehInfo(i); | ||||
| 		const Engine* e = GetEngine(i); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 peter1138
					peter1138