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

Function update_prompt_status

src/SB/Game/zTalkBox.cpp:1078–1102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1076 }
1077 }
1078 static void update_prompt_status(F32 dt)
1079 {
1080 if (!shared.wait.type.prompt)
1081 {
1082 return;
1083 }
1084
1085 if (shared.prompt_ready)
1086 {
1087 return;
1088 }
1089
1090 shared.prompt_delay -= dt;
1091 if (shared.prompt_delay > 0.0f)
1092 {
1093 return;
1094 }
1095
1096 if (!shared.stream_locked[shared.next_stream] ||
1097 xSndStreamReady((U32)&shared.stream_locked[shared.next_stream]))
1098 {
1099 shared.prompt_ready = true;
1100 refresh_prompts();
1101 }
1102 }
1103 static void update_quit_status(F32 dt)
1104 {
1105 if (shared.quit_ready)

Callers 1

updateMethod · 0.85

Calls 2

refresh_promptsFunction · 0.70
xSndStreamReadyFunction · 0.50

Tested by

no test coverage detected