TBTR: Fix front engine not being cleared when being replaced. and kept in depot

This commit is contained in:
Jonathan G Rennison
2019-05-18 10:17:30 +01:00
parent 49f6490c7d
commit ee06258629
2 changed files with 5 additions and 3 deletions

View File

@@ -330,7 +330,7 @@ void BreakUpRemainders(Train *t)
if (HasBit(t->subtype, GVSF_ENGINE)) {
move = t;
t = t->Next();
DoCommand(move->tile, move->index, INVALID_VEHICLE, DC_EXEC, CMD_MOVE_RAIL_VEHICLE);
DoCommand(move->tile, move->index | (1 << 22), INVALID_VEHICLE, DC_EXEC, CMD_MOVE_RAIL_VEHICLE);
NeutralizeStatus(move);
} else {
t = t->Next();