summaryrefslogtreecommitdiff
path: root/src/train_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-02-04 19:20:47 +0000
committerrubidium <rubidium@openttd.org>2011-02-04 19:20:47 +0000
commit00a766ed27c53e6177a5c4f09638d4fb344db5a2 (patch)
treeead2419e2a293c8987eae6dc1911146f51a59d56 /src/train_cmd.cpp
parent1cd4b3bb86c5a8a481804c596ce6b293f6e1ab85 (diff)
downloadopenttd-00a766ed27c53e6177a5c4f09638d4fb344db5a2.tar.xz
(svn r21966) -Change [FS#4462]: [NewGRF] Disable the flipping of train engines/wagons in the depot by default for NewGRFs
Diffstat (limited to 'src/train_cmd.cpp')
-rw-r--r--src/train_cmd.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp
index 98f6aa5de..883f46fae 100644
--- a/src/train_cmd.cpp
+++ b/src/train_cmd.cpp
@@ -1792,6 +1792,7 @@ CommandCost CmdReverseTrainDirection(TileIndex tile, DoCommandFlag flags, uint32
if (v->IsMultiheaded() || HasBit(EngInfo(v->engine_type)->callback_mask, CBM_VEHICLE_ARTIC_ENGINE)) {
return_cmd_error(STR_ERROR_CAN_T_REVERSE_DIRECTION_RAIL_VEHICLE_MULTIPLE_UNITS);
}
+ if (!HasBit(EngInfo(v->engine_type)->misc_flags, EF_RAIL_FLIPS)) return CMD_ERROR;
Train *front = v->First();
/* make sure the vehicle is stopped in the depot */