summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2007-01-27 22:28:28 +0000
committerpeter1138 <peter1138@openttd.org>2007-01-27 22:28:28 +0000
commit60ddc059258563105a628a7e5bdbdaed349c1f21 (patch)
treedbd7a2a2d0a9caffaf85632d39227f55aaa5f6af /src
parentf5412c1a4181a340645ac747cd9ea3731cc24624 (diff)
downloadopenttd-60ddc059258563105a628a7e5bdbdaed349c1f21.tar.xz
(svn r8434) -Fix (r8430): Missing braces caused compilation failure for some (most?) compilers...
Diffstat (limited to 'src')
-rw-r--r--src/aircraft_cmd.cpp3
-rw-r--r--src/ship_cmd.cpp3
-rw-r--r--src/train_cmd.cpp3
3 files changed, 6 insertions, 3 deletions
diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp
index 91b2a3177..9aa91efd6 100644
--- a/src/aircraft_cmd.cpp
+++ b/src/aircraft_cmd.cpp
@@ -1258,7 +1258,7 @@ static void MarkAircraftDirty(Vehicle *v)
static void HandleAircraftLoading(Vehicle *v, int mode)
{
switch (v->current_order.type) {
- case OT_LOADING:
+ case OT_LOADING: {
if (mode != 0) return;
if (--v->load_unload_time_rem != 0) return;
@@ -1280,6 +1280,7 @@ static void HandleAircraftLoading(Vehicle *v, int mode)
MarkAircraftDirty(v);
if (!(b.flags & OF_NON_STOP)) return;
break;
+ }
case OT_DUMMY: break;
diff --git a/src/ship_cmd.cpp b/src/ship_cmd.cpp
index 50f92f600..30ecac1a2 100644
--- a/src/ship_cmd.cpp
+++ b/src/ship_cmd.cpp
@@ -274,7 +274,7 @@ static void ProcessShipOrder(Vehicle *v)
static void HandleShipLoading(Vehicle *v)
{
switch (v->current_order.type) {
- case OT_LOADING:
+ case OT_LOADING: {
if (--v->load_unload_time_rem) return;
if (CanFillVehicle(v) && (
@@ -294,6 +294,7 @@ static void HandleShipLoading(Vehicle *v)
v->LeaveStation();
if (!(b.flags & OF_NON_STOP)) return;
break;
+ }
case OT_DUMMY: break;
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp
index 4378a3d75..78481f3a2 100644
--- a/src/train_cmd.cpp
+++ b/src/train_cmd.cpp
@@ -2606,7 +2606,7 @@ static void MarkTrainDirty(Vehicle *v)
static void HandleTrainLoading(Vehicle *v, bool mode)
{
switch (v->current_order.type) {
- case OT_LOADING:
+ case OT_LOADING: {
if (mode) return;
// don't mark the train as lost if we're loading on the final station.
@@ -2641,6 +2641,7 @@ static void HandleTrainLoading(Vehicle *v, bool mode)
// If this was not the final order, don't remove it from the list.
if (!(b.flags & OF_NON_STOP)) return;
break;
+ }
case OT_DUMMY: break;