summaryrefslogtreecommitdiff
path: root/vehicle.c
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2006-08-31 19:15:01 +0000
committerbjarni <bjarni@openttd.org>2006-08-31 19:15:01 +0000
commitece5584d00b82c07a97f82b59400f1c604489f45 (patch)
tree60e4877970bf0f2a0f78a5bca59cb921fa6d5f95 /vehicle.c
parent38963a6ed0c21d2afe391edb0b4b8684d203b8c7 (diff)
downloadopenttd-ece5584d00b82c07a97f82b59400f1c604489f45.tar.xz
(svn r6284) -Code Cleanup r6282: cleaned up the code a bit
Diffstat (limited to 'vehicle.c')
-rw-r--r--vehicle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vehicle.c b/vehicle.c
index 840212c6d..6ec79fcb7 100644
--- a/vehicle.c
+++ b/vehicle.c
@@ -1910,7 +1910,7 @@ static void MaybeReplaceVehicle(Vehicle *v)
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 @@ int32 SendAllVehiclesToDepot(byte type, uint32 flags, bool service, PlayerID own
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);