MCPcopy Create free account
hub / github.com/Phobos-developers/Phobos / BuildingClass_Place_Wrapper

Function BuildingClass_Place_Wrapper

src/Ext/Building/Hooks.cpp:560–565  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

558#pragma region OwnerChangeBuildupFix
559
560void __fastcall BuildingClass_Place_Wrapper(BuildingClass* pThis, void*, bool captured)
561{
562 // Skip calling Place() here if we're in middle of buildup.
563 if (pThis->CurrentMission != Mission::Construction || pThis->BState != (int)BStateType::Construction)
564 pThis->Place(captured);
565}
566
567DEFINE_FUNCTION_JUMP(CALL6, 0x448CEF, BuildingClass_Place_Wrapper);
568

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected