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

Function zEntPlayer_SNDPlayDelayed

src/SB/Game/zEntPlayer.cpp:5680–5700  ·  view source on GitHub ↗

equivalent: regswap, likely caused by not reloading 0.0f for second compare

Source from the content-addressed store, hash-verified

5678
5679// equivalent: regswap, likely caused by not reloading 0.0f for second compare
5680void zEntPlayer_SNDPlayDelayed(F32 seconds)
5681{
5682 if (globals.cmgr == NULL && !sPlayerIgnoreSound)
5683 {
5684 for (S32 i = 0; i < MAX_DELAYED_SOUNDS; i++)
5685 {
5686 if (sDelayedSound[i].delay > 0.0f)
5687 {
5688 sDelayedSound[i].delay -= seconds;
5689 if (sDelayedSound[i].delay <= 0.0f)
5690 {
5691 zEntPlayer_SNDPlayStreamRandom(sDelayedSound[i].start, sDelayedSound[i].end,
5692 0.0f);
5693 sDelayedSound[i].start = ePlayerStreamSnd_Invalid;
5694 sDelayedSound[i].end = ePlayerStreamSnd_Invalid;
5695 sDelayedSound[i].delay = 0.0f;
5696 }
5697 }
5698 }
5699 }
5700}
5701
5702void zEntPlayer_SNDPlayStream(U32 lower, U32 upper, _tagePlayerStreamSnd player_snd, U32 flags)
5703{

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected