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

Method stop_talk

src/SB/Game/zTaskBox.cpp:96–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96void ztaskbox::stop_talk()
97{
98 ztaskbox* curr = this->current;
99
100 if (curr == NULL)
101 {
102 return;
103 }
104
105 if (curr != this)
106 {
107 curr->stop_talk();
108 return;
109 }
110
111 if (!this->flag.enabled || this->state == STATE_INVALID)
112 {
113 return;
114 }
115
116 if (shared != this)
117 {
118 return;
119 }
120
121 ztalkbox* other = (ztalkbox*)zSceneFindObject(this->asset->talk_box);
122
123 if (other)
124 {
125 other->stop_talk();
126 shared = NULL;
127 }
128}
129
130void ztaskbox::enable()
131{

Callers 2

start_talkMethod · 0.45
cb_dispatchMethod · 0.45

Calls 1

zSceneFindObjectFunction · 0.85

Tested by

no test coverage detected