MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / removeLandGhost

Function removeLandGhost

src/OpenLoco/src/Ui/Windows/Vehicle.cpp:4674–4685  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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>

Callers 2

pickupToolUpdateLandFunction · 0.85
pickupToolDownLandFunction · 0.85

Calls 2

has38FlagsMethod · 0.80
doCommandFunction · 0.50

Tested by

no test coverage detected