| 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) |
no test coverage detected