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

Function zEntPlayer_UnloadSounds

src/SB/Game/zEntPlayer.cpp:8040–8074  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8038}
8039
8040void zEntPlayer_UnloadSounds()
8041{
8042 if (g_flg_loaded == 0)
8043 {
8044 return;
8045 }
8046 if (g_flg_loaded & 0x10)
8047 {
8048 xSTUnLoadScene('SPSC', 1);
8049 }
8050 if (g_flg_loaded & 0x20)
8051 {
8052 xSTUnLoadScene('SPSC', 2);
8053 iSndSceneExit();
8054 }
8055 if (g_flg_loaded & 0x04)
8056 {
8057 xSTUnLoadScene('SPPA', 1);
8058 }
8059 if (g_flg_loaded & 0x08)
8060 {
8061 xSTUnLoadScene('SPPA', 2);
8062 iSndSceneExit();
8063 }
8064 if (g_flg_loaded & 0x01)
8065 {
8066 xSTUnLoadScene('SPSB', 1);
8067 }
8068 if (g_flg_loaded & 0x02)
8069 {
8070 xSTUnLoadScene('SPSB', 2);
8071 iSndSceneExit();
8072 }
8073 g_flg_loaded = 0;
8074}
8075
8076void dont_move(xEnt* ent, xScene* scene, F32 dt, xEntFrame* frame)
8077{

Callers 1

zSceneExitFunction · 0.85

Calls 1

xSTUnLoadSceneFunction · 0.50

Tested by

no test coverage detected