mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-09 07:29:44 +00:00
(svn r3381) -Fix: r3374 left one bug: allow moving around wagons in a 100 long train
This commit is contained in:
parent
e373bd02ba
commit
e8c871a603
@ -1005,6 +1005,8 @@ int32 CmdMoveRailVehicle(int x, int y, uint32 flags, uint32 p1, uint32 p2)
|
|||||||
r = CheckTrainStoppedInDepot(dst_head);
|
r = CheckTrainStoppedInDepot(dst_head);
|
||||||
if (r < 0) return CMD_ERROR;
|
if (r < 0) return CMD_ERROR;
|
||||||
|
|
||||||
|
/* If we move in the same vehicle, it is okay */
|
||||||
|
if (dst_head != src_head)
|
||||||
num += r;
|
num += r;
|
||||||
|
|
||||||
assert(dst_head->tile == src_head->tile);
|
assert(dst_head->tile == src_head->tile);
|
||||||
|
Loading…
Reference in New Issue
Block a user