TBTR: Allow flipping direction of vehicles in template editor

This commit is contained in:
Jonathan G Rennison
2021-01-10 17:00:28 +00:00
parent 212489cf38
commit e9f7783327
2 changed files with 5 additions and 2 deletions

View File

@@ -2409,7 +2409,7 @@ CommandCost CmdReverseTrainDirection(TileIndex tile, DoCommandFlag flags, uint32
Train *front = v->First();
/* make sure the vehicle is stopped in the depot */
if (!front->IsStoppedInDepot()) {
if (!front->IsStoppedInDepot() && !front->IsVirtual()) {
return_cmd_error(STR_ERROR_TRAINS_CAN_ONLY_BE_ALTERED_INSIDE_A_DEPOT);
}