Fix template train move/sell command category for build while paused

This commit is contained in:
Jonathan G Rennison
2022-09-16 13:06:08 +01:00
parent fc5e20719d
commit 839746d2bb
6 changed files with 25 additions and 3 deletions

View File

@@ -2001,6 +2001,14 @@ static void NormaliseTrainHead(Train *head)
head->unitnumber = GetFreeUnitNumber(VEH_TRAIN);
}
CommandCost CmdMoveVirtualRailVehicle(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 p2, const char *text)
{
Train *src = Train::GetIfValid(GB(p1, 0, 20));
if (src == nullptr || !src->IsVirtual()) return CMD_ERROR;
return CmdMoveRailVehicle(tile, flags, p1, p2, text);
}
/**
* Move a rail vehicle around inside the depot.
* @param tile unused