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 }
940
941 static void deactivate()
942 {
943 stop_audio_effect();
944
945 ztalkbox* active = shared.active;
946 if (active == NULL)
947 {
948 return;
949 }
950
951 if (active->prompt_box != NULL)
952 {
953 active->prompt_box->deactivate();
954 }
955 shared.active = NULL;
956 active->dialog_box->flag.visible = false;
957 }
958
959 static void activate(ztalkbox& t)
960 {

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