| 433 | } |
| 434 | |
| 435 | bool PlayBriefing(tTelComInfo *tcs) { |
| 436 | TelcomRenderSetScreen(0); |
| 437 | bool done = false; |
| 438 | |
| 439 | while (!done) { |
| 440 | Sound_system.BeginSoundFrame(Telcom_called_from_game); |
| 441 | |
| 442 | if (tcs->state == TCS_POWEROFF || tcs->current_status != TS_MISSION) { |
| 443 | // we're done with the loop |
| 444 | done = true; |
| 445 | } |
| 446 | // Process all waiting events for the TelCom (we may only want to handle this once a frame!) |
| 447 | TelComHandleAllEvents(tcs); |
| 448 | |
| 449 | TelcomRenderScreen(); |
| 450 | Descent->defer(); |
| 451 | if (KEY_STATE(KEY_ESC)) |
| 452 | tcs->state = TCS_POWEROFF; |
| 453 | |
| 454 | Sound_system.EndSoundFrame(); |
| 455 | } |
| 456 | return true; |
| 457 | } |
| 458 | |
| 459 | void PBAddTextEffect(TCTEXTDESC* desc, char *text, char *description, int id) { |
| 460 | if (IsMissionMaskOK(desc->mission_mask_set, desc->mission_mask_unset) && ok_to_parse_screen) { |
no test coverage detected