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

Function deactivate

src/SB/Game/zTalkBox.cpp:941–957  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

939 switch (shared.active->asset->audio_effect)
940 {
941 case 1:
942 zMusicSetVolume(1.0f, music_fade_delay);
943 break;
944 case 0:
945 default:
946 break;
947 }
948 }
949
950 static void deactivate()
951 {
952 stop_audio_effect();
953
954 ztalkbox* active = shared.active;
955 if (active == NULL)
956 {
957 return;
958 }
959
960 if (active->prompt_box != NULL)

Callers 4

resetMethod · 0.85
activateFunction · 0.85
resetMethod · 0.85
stopFunction · 0.85

Calls 2

stop_audio_effectFunction · 0.85
deactivateMethod · 0.45

Tested by

no test coverage detected