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

Function removeBoatGhost

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

Source from the content-addressed store, hash-verified

4288 }
4289
4290 static void removeBoatGhost(const Vehicles::VehicleHead& head)
4291 {
4292 // Note: don't use isPlaced as we need to know if its a ghost
4293 // consider creating isGhostPlaced
4294 if (head.tileX != -1 && head.has38Flags(Vehicles::Flags38::isGhost))
4295 {
4296 GameCommands::VehiclePickupWaterArgs gcArgs{};
4297 gcArgs.head = head.id;
4298 auto flags = GameCommands::Flags::apply | GameCommands::Flags::noErrorWindow | GameCommands::Flags::ghost;
4299 GameCommands::doCommand(gcArgs, flags);
4300 }
4301 _ghostTrackProgress = -1;
4302 }
4303
4304 // 0x004B2B9E
4305 static void pickupToolUpdateWater(const Vehicles::VehicleHead& head, const int16_t x, const int16_t y)

Callers 2

pickupToolUpdateWaterFunction · 0.85
pickupToolDownWaterFunction · 0.85

Calls 2

has38FlagsMethod · 0.80
doCommandFunction · 0.50

Tested by

no test coverage detected