| 553 | } |
| 554 | |
| 555 | bool PBLoopCallback() { |
| 556 | if (!pbfirst_call) { |
| 557 | Sound_system.EndSoundFrame(); |
| 558 | } else |
| 559 | pbfirst_call = false; |
| 560 | |
| 561 | bool ret = false; |
| 562 | Sound_system.BeginSoundFrame(Telcom_called_from_game); |
| 563 | |
| 564 | if (pb_tcs->state == TCS_POWEROFF || pb_tcs->current_status != TS_MISSION) { |
| 565 | // we're done with the loop |
| 566 | ret = true; |
| 567 | } |
| 568 | |
| 569 | // Process all waiting events for the TelCom (we may only want to handle this once a frame!) |
| 570 | TelComHandleAllEvents(pb_tcs); |
| 571 | TelcomRenderScreen(); |
| 572 | |
| 573 | Descent->defer(); |
| 574 | if (KEY_STATE(KEY_ESC)) { |
| 575 | pb_tcs->state = TCS_POWEROFF; |
| 576 | ret = true; |
| 577 | } |
| 578 | |
| 579 | return ret; |
| 580 | } |
| 581 | |
| 582 | void PBSetTitle(char *title) { |
| 583 | gottitle = true; |
nothing calls this directly
no test coverage detected