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

Callers 2

reset_tag_auto_waitFunction · 0.70
start_talkMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected