Skip to content

Commit da3f31f

Browse files
committed
PointerExpired change now ignore building
Because it is buggy and idk how to fix it for now
1 parent c8c2554 commit da3f31f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Misc/Hooks.BugFixes.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1642,7 +1642,9 @@ DEFINE_HOOK(0x5F530B, ObjectClass_Disappear_AnnounceExpiredPointer, 0x6)
16421642
GET(ObjectClass*, pThis, ESI);
16431643
GET_STACK(bool, removed, STACK_OFFSET(0x8, 0x4));
16441644
R->ECX(pThis);
1645-
R->EDX(((pThis->AbstractFlags & AbstractFlags::Techno) != AbstractFlags::None) ? Disappear::removed : removed);
1645+
// Do not working for buildings for now, because it will break some vanilla building tracking.
1646+
// Hoping someone could investigate thoroughly and enable it for buildings.
1647+
R->EDX(((pThis->AbstractFlags & AbstractFlags::Foot) != AbstractFlags::None) ? Disappear::removed : removed);
16461648
Disappear::removed = false;
16471649
return 0x5F5311;
16481650
}

0 commit comments

Comments
 (0)