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

Function xSFXUpdate

src/SB/Core/x/xSFX.cpp:174–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172}
173
174static void xSFXUpdate(xSFX* t)
175{
176 if ((t->asset->flagsSFX & 0x800) && (t->sndID) &&
177 (!xSndIDIsPlaying(t->sndID)))
178 {
179 t->sndID = 0;
180 t->asset->flagsSFX = t->asset->flagsSFX & 0xefff;
181 zEntEvent(t, t, 0xbf);
182 }
183}
184
185S32 xSFXEventCB(xBase* to, xBase* from, U32 toEvent, const F32* toParam, xBase* toParamWidget)
186{

Callers 1

Calls 2

xSndIDIsPlayingFunction · 0.70
zEntEventFunction · 0.70

Tested by

no test coverage detected