summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-02-13 16:49:25 +0000
committersmatz <smatz@openttd.org>2008-02-13 16:49:25 +0000
commit4c5dde140b6272be60f6d9e36e147622750bc007 (patch)
tree4080083294d993345dbd4ebd75129b441ebefb65 /src
parent81067ddfdf3ef2f258e13589086d36c4cc89eb57 (diff)
downloadopenttd-4c5dde140b6272be60f6d9e36e147622750bc007.tar.xz
(svn r12131) -Fix (r3374): with mammoth trains disabled, maximum train length was limited to 9
Diffstat (limited to 'src')
-rw-r--r--src/train_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp
index 79ca20083..232c79e07 100644
--- a/src/train_cmd.cpp
+++ b/src/train_cmd.cpp
@@ -993,7 +993,7 @@ CommandCost CmdMoveRailVehicle(TileIndex tile, uint32 flags, uint32 p1, uint32 p
if (HasBit(p2, 0) && src_head == dst_head) return CommandCost();
{
- int max_len = _patches.mammoth_trains ? 100 : 9;
+ int max_len = _patches.mammoth_trains ? 100 : 10;
/* check if all vehicles in the source train are stopped inside a depot. */
int src_len = CheckTrainStoppedInDepot(src_head);