(svn r12131) -Fix (r3374): with mammoth trains disabled, maximum train length was limited to 9
authorsmatz
Wed, 13 Feb 2008 16:49:25 +0000
changeset 9049 7e716ad214c6
parent 9048 5f8e305f2e82
child 9050 c9b3ceb09413
(svn r12131) -Fix (r3374): with mammoth trains disabled, maximum train length was limited to 9
src/train_cmd.cpp
--- a/src/train_cmd.cpp	Wed Feb 13 14:31:13 2008 +0000
+++ b/src/train_cmd.cpp	Wed Feb 13 16:49:25 2008 +0000
@@ -993,7 +993,7 @@
 	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);