mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 22:28:56 +00:00
(svn r12131) -Fix (r3374): with mammoth trains disabled, maximum train length was limited to 9
This commit is contained in:
parent
0d1e4237cf
commit
480036254b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user