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

Function EffectActiveInsert

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

Source from the content-addressed store, hash-verified

1167}
1168
1169static void EffectActiveInsert(xAnimSingle* single, xAnimActiveEffect* active)
1170{
1171 U32 index = 0;
1172 U32 count = single->ActiveCount;
1173 xAnimActiveEffect* curr = &single->ActiveList[0];
1174
1175 while (index < count && curr->Effect)
1176 {
1177 curr++;
1178 index++;
1179 }
1180
1181 *curr = *active;
1182
1183 if (index < count - 1)
1184 {
1185 (curr + 1)->Effect = NULL;
1186 }
1187}
1188
1189static void EffectActiveRemove(xAnimActiveEffect* active, U32 index, U32 count)
1190{

Callers 2

EffectSingleStartFunction · 0.85
EffectSingleRunFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected