MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / PBLoopCallback

Function PBLoopCallback

Descent3/Briefing.cpp:555–580  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

553}
554
555bool 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
582void PBSetTitle(char *title) {
583 gottitle = true;

Callers

nothing calls this directly

Calls 5

TelComHandleAllEventsFunction · 0.85
TelcomRenderScreenFunction · 0.85
EndSoundFrameMethod · 0.80
BeginSoundFrameMethod · 0.80
deferMethod · 0.45

Tested by

no test coverage detected