| 4672 | } |
| 4673 | |
| 4674 | static void removeLandGhost(const Vehicles::VehicleHead& head) |
| 4675 | { |
| 4676 | // Note: don't use isPlaced as we need to know if its a ghost |
| 4677 | // consider creating isGhostPlaced |
| 4678 | if (head.tileX != -1 && head.has38Flags(Vehicles::Flags38::isGhost)) |
| 4679 | { |
| 4680 | GameCommands::VehiclePickupArgs args{}; |
| 4681 | args.head = head.id; |
| 4682 | GameCommands::doCommand(args, GameCommands::Flags::apply | GameCommands::Flags::noErrorWindow | GameCommands::Flags::ghost); |
| 4683 | } |
| 4684 | _ghostTrackProgress = -1; |
| 4685 | } |
| 4686 | |
| 4687 | // 0x004B2A1D |
| 4688 | template<typename GetPlacementArgsFunc> |
no test coverage detected