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

Function reset_auto_wait

src/SB/Game/zTalkBox.cpp:168–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166 }
167
168 static void reset_auto_wait()
169 {
170 const ztalkbox::asset_type* a = shared.active->asset;
171
172 shared.auto_wait.type.time = a->auto_wait.type.time;
173 shared.auto_wait.type.prompt = a->auto_wait.type.prompt;
174 shared.auto_wait.type.sound = a->auto_wait.type.sound;
175 shared.auto_wait.type.event = a->auto_wait.type.event;
176
177 shared.auto_wait.delay = a->auto_wait.delay;
178
179 shared.auto_wait.need = 0;
180
181 if (a->auto_wait.which_event <= 0 || a->auto_wait.which_event >= 32)
182 {
183 shared.auto_wait.event_mask = -1;
184 }
185 else
186 {
187 shared.auto_wait.event_mask = 1u << a->auto_wait.which_event;
188 }
189
190 shared.auto_wait.query = Q_SKIP;
191 }
192
193 static void load_wait_context(wait_context& c, const xtextbox::tag_entry_list& el)
194 {

Callers 2

reset_tag_auto_waitFunction · 0.70
start_talkMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected