(svn r6284) -Code Cleanup r6282: cleaned up the code a bit
authorbjarni
Thu, 31 Aug 2006 19:15:01 +0000
changeset 4499 ca3e924db010
parent 4498 2a9c11bad720
child 4500 6bcd1f6fdc22
(svn r6284) -Code Cleanup r6282: cleaned up the code a bit
vehicle.c
--- a/vehicle.c	Thu Aug 31 18:33:05 2006 +0000
+++ b/vehicle.c	Thu Aug 31 19:15:01 2006 +0000
@@ -1910,7 +1910,7 @@
 uint GenerateVehicleSortList(const Vehicle** sort_list, byte type, PlayerID owner, StationID station, OrderID order, uint16 window_type)
 {
 	const uint subtype = (type != VEH_Aircraft) ? Train_Front : 2;
-	uint16 n = 0;
+	uint n = 0;
 	const Vehicle *v;
 
 	switch (window_type) {
@@ -1984,7 +1984,7 @@
 	n = GenerateVehicleSortList(sort_list, type, owner, INVALID_STATION, INVALID_ORDER, VLW_STANDARD);
 
 	/* Send all the vehicles to a depot */
-	for (i=0; i < n; i++) {
+	for (i = 0; i < n; i++) {
 		const Vehicle *v = sort_list[i];
 		if (!DoCommand(v->tile, v->index, service, flags, CMD_SEND_TO_DEPOT(type)) && !(flags & DC_EXEC)) {
 			free((void*)sort_list);