MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / xUpdateCull_MakeInactive

Function xUpdateCull_MakeInactive

src/SB/Core/x/xUpdateCull.cpp:58–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58static void xUpdateCull_MakeInactive(xUpdateCullMgr* m, xUpdateCullEnt* e)
59{
60 U32 eIndex = e->index;
61 U32 mEntActive = m->entActive;
62
63 if (eIndex < mEntActive)
64 {
65 mEntActive--;
66 if (eIndex != mEntActive)
67 {
68 xUpdateCull_Swap(m, eIndex, mEntActive);
69 }
70 if (m->deactivateCB != NULL)
71 {
72 m->deactivateCB(m->ent[e->index]);
73 }
74 m->entActive--;
75 }
76}
77
78U32 xUpdateCull_AlwaysTrueCB(void* ent, void* cbdata)
79{

Callers 1

xUpdateCull_UpdateFunction · 0.85

Calls 1

xUpdateCull_SwapFunction · 0.70

Tested by

no test coverage detected