diff options
author | smatz <smatz@openttd.org> | 2008-03-15 13:21:31 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-03-15 13:21:31 +0000 |
commit | bfae49aeb2affaf239f7e9b04b6b7e226830e962 (patch) | |
tree | 430a2db18c790d538b3473d93a0c95f2afbdde7d /src/train_cmd.cpp | |
parent | 5db7288ea961e1418d0983d8ef4c08c32d2fc879 (diff) | |
download | openttd-bfae49aeb2affaf239f7e9b04b6b7e226830e962.tar.xz |
(svn r12368) -Codechange: use explicit body for loops and conditions and remove -Wno-empty-body from the configure script
Diffstat (limited to 'src/train_cmd.cpp')
-rw-r--r-- | src/train_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index 38c35609a..5a830608d 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -1214,7 +1214,7 @@ CommandCost CmdMoveRailVehicle(TileIndex tile, uint32 flags, uint32 p1, uint32 p { Vehicle *v; - for (v = src; GetNextVehicle(v) != NULL; v = GetNextVehicle(v)); + for (v = src; GetNextVehicle(v) != NULL; v = GetNextVehicle(v)) {} GetLastEnginePart(v)->SetNext(dst->Next()); } dst->SetNext(src); @@ -3745,7 +3745,7 @@ void ConnectMultiheadedTrains() } 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)) { |