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

Function EffectActiveRemove

src/SB/Core/x/xAnim.cpp:1189–1210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1187}
1188
1189static void EffectActiveRemove(xAnimActiveEffect* active, U32 index, U32 count)
1190{
1191 count--;
1192
1193 if (index == count || !(active + 1)->Effect)
1194 {
1195 active->Effect = NULL;
1196 }
1197 else
1198 {
1199 xAnimActiveEffect* curr = active;
1200
1201 while (index < count && (curr + 1)->Effect)
1202 {
1203 curr++;
1204 index++;
1205 }
1206
1207 *active = *curr;
1208 curr->Effect = NULL;
1209 }
1210}
1211
1212static U32 EffectPlaying(xAnimSingle* single, xAnimEffect* effect)
1213{

Callers 2

EffectSingleDurationFunction · 0.85
EffectSingleLoopFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected