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

Function xFFXRemoveEffectByFData

src/SB/Core/x/xFFX.cpp:86–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86U32 xFFXRemoveEffectByFData(xEnt* ent, void* fdata)
87{
88 xFFX** ffxh = &ent->ffx;
89
90 while (*ffxh != NULL)
91 {
92 xFFX* next = *ffxh;
93 if (fdata == next->fdata)
94 {
95 next = next->next;
96 ent->num_ffx--;
97 xFFXFree(*ffxh);
98 *ffxh = next;
99
100 return 1;
101 }
102
103 ffxh = &(*ffxh)->next;
104 }
105
106 return 0;
107}
108
109static void xFFXApplyOne(xFFX* ffx, xEnt* ent, xScene* sc, F32 dt)
110{

Callers 1

xFFXShakeUpdateEntFunction · 0.85

Calls 1

xFFXFreeFunction · 0.85

Tested by

no test coverage detected