summaryrefslogtreecommitdiff
path: root/src/train_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-11-29 19:20:39 +0000
committerrubidium <rubidium@openttd.org>2009-11-29 19:20:39 +0000
commit2e2f72b971a2365518bd9623aedfd64b53d0612c (patch)
tree7389f6dd1ab47d5c8cd79df1730b23980e087896 /src/train_gui.cpp
parent2784f15304cd329bb7288aa54fb338f8bb335c3b (diff)
downloadopenttd-2e2f72b971a2365518bd9623aedfd64b53d0612c.tar.xz
(svn r18342) -Fix: erroneous spaces before ;
Diffstat (limited to 'src/train_gui.cpp')
-rw-r--r--src/train_gui.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/train_gui.cpp b/src/train_gui.cpp
index 38a5d9b0f..f1c5d93d2 100644
--- a/src/train_gui.cpp
+++ b/src/train_gui.cpp
@@ -200,7 +200,7 @@ int GetTrainDetailsWndVScroll(VehicleID veh_id, TrainDetailsWindowTabs det_tab)
if (det_tab == TDW_TAB_TOTALS) { // Total cargo tab
CargoArray act_cargo;
CargoArray max_cargo;
- for (const Vehicle *v = Vehicle::Get(veh_id) ; v != NULL ; v = v->Next()) {
+ for (const Vehicle *v = Vehicle::Get(veh_id); v != NULL; v = v->Next()) {
act_cargo[v->cargo_type] += v->cargo.Count();
max_cargo[v->cargo_type] += v->cargo_cap;
}
@@ -213,7 +213,7 @@ int GetTrainDetailsWndVScroll(VehicleID veh_id, TrainDetailsWindowTabs det_tab)
}
num++; // needs one more because first line is description string
} else {
- for (const Train *v = Train::Get(veh_id) ; v != NULL ; v = v->Next()) {
+ for (const Train *v = Train::Get(veh_id); v != NULL; v = v->Next()) {
if (!v->IsArticulatedPart() || v->cargo_cap != 0) num++;
}
}
@@ -291,7 +291,7 @@ void DrawTrainDetails(const Train *v, int left, int right, int y, int vscroll_po
CargoArray max_cargo;
Money feeder_share = 0;
- for (const Vehicle *u = v; u != NULL ; u = u->Next()) {
+ for (const Vehicle *u = v; u != NULL; u = u->Next()) {
act_cargo[u->cargo_type] += u->cargo.Count();
max_cargo[u->cargo_type] += u->cargo_cap;
feeder_share += u->cargo.FeederShare();