Fix free wagon re-arrangement when estimating train build and refit cost

See: #149
This commit is contained in:
Jonathan G Rennison
2020-04-28 22:55:48 +01:00
parent 686ff03817
commit b458c0c88d

View File

@@ -137,6 +137,7 @@ CommandCost CmdBuildVehicle(TileIndex tile, DoCommandFlag flags, uint32 p1, uint
* test it. */
DoCommandFlag subflags = flags;
if (refitting) subflags |= DC_EXEC;
if (refitting && (flags & DC_EXEC) == 0 && type == VEH_TRAIN) SetBit(p1, 16);
/* Vehicle construction needs random bits, so we have to save the random
* seeds to prevent desyncs. */