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

Function activate

src/SB/Game/zTalkBox.cpp:959–978  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

957 return;
958 }
959
960 if (active->prompt_box != NULL)
961 {
962 active->prompt_box->deactivate();
963 }
964 shared.active = NULL;
965 active->dialog_box->flag.visible = false;
966 }
967
968 static void activate(ztalkbox& t)
969 {
970 deactivate();
971
972 shared.active = &t;
973
974 if (t.dialog_box->flag.active)
975 {
976 t.dialog_box->deactivate();
977 }
978
979 if (t.prompt_box != NULL && t.flag.visible)
980 {
981 t.prompt_box->activate();

Callers 1

start_talkMethod · 0.85

Calls 4

deactivateFunction · 0.85
start_audio_effectFunction · 0.85
deactivateMethod · 0.45
activateMethod · 0.45

Tested by

no test coverage detected