From 1c3e8630feb95e7202c83984620aced872a5da77 Mon Sep 17 00:00:00 2001 From: tron Date: Wed, 1 Feb 2006 07:36:15 +0000 Subject: (svn r3511) More whitespace ([FS#46] by Rubidium) --- train_cmd.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'train_cmd.c') diff --git a/train_cmd.c b/train_cmd.c index 2e11c1654..1de6dcebb 100644 --- a/train_cmd.c +++ b/train_cmd.c @@ -894,11 +894,11 @@ static void NormaliseTrainConsist(Vehicle *v) assert(IsFrontEngine(v)); - for(; v != NULL; v = GetNextVehicle(v)) { + for (; v != NULL; v = GetNextVehicle(v)) { if (!IsMultiheaded(v) || !IsTrainEngine(v)) continue; /* make sure that there are no free cars before next engine */ - for(u = v; u->next != NULL && !IsTrainEngine(u->next); u = u->next); + for (u = v; u->next != NULL && !IsTrainEngine(u->next); u = u->next); if (u == v->u.rail.other_multiheaded_part) continue; AddWagonToConsist(v->u.rail.other_multiheaded_part, u); @@ -974,7 +974,7 @@ int32 CmdMoveRailVehicle(int x, int y, uint32 flags, uint32 p1, uint32 p2) /* we need to make sure that we didn't place it between a pair of multiheaded engines */ Vehicle *u, *engine = NULL; - for(u = dst_head; u != NULL; u = u->next) { + for (u = dst_head; u != NULL; u = u->next) { if (IsTrainEngine(u) && IsMultiheaded(u) && u->u.rail.other_multiheaded_part != NULL) { engine = u; } @@ -2214,7 +2214,7 @@ static bool CheckReverseTrain(Vehicle *v) reverse_best = false; } } else { - while(true) { + for (;;) { fd.best_bird_dist = (uint)-1; fd.best_track_dist = (uint)-1; @@ -3536,7 +3536,7 @@ void ConnectMultiheadedTrains(void) { Vehicle *w; - for(w = u->next; w != NULL && (w->engine_type != u->engine_type || w->u.rail.other_multiheaded_part != NULL); w = GetNextVehicle(w)); + for (w = u->next; w != NULL && (w->engine_type != u->engine_type || w->u.rail.other_multiheaded_part != NULL); w = GetNextVehicle(w)); if (w != NULL) { /* we found a car to partner with this engine. Now we will make sure it face the right way */ if (IsTrainEngine(w)) { -- cgit v1.2.3-54-g00ecf