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

Function TelcomAdvanceScreen

Descent3/TelCom.cpp:3101–3119  ·  view source on GitHub ↗

Advances to the next screen returns true is there is no screen (it's not being made, nor ready)

Source from the content-addressed store, hash-verified

3099// Advances to the next screen
3100// returns true is there is no screen (it's not being made, nor ready)
3101bool TelcomAdvanceScreen(void) {
3102 int next_screen = TC_current_screen + 1;
3103 if (next_screen >= MAX_TELCOM_SCREENS)
3104 return true;
3105 switch (Telcom_system.Screen_state[next_screen]) {
3106 case SS_EMPTY:
3107 // no screen even being worked on...return true
3108 return true;
3109 break;
3110 case SS_BEING_MADE:
3111 return false;
3112 break;
3113 case SS_READY:
3114 TelcomRenderSetScreen(TC_current_screen + 1);
3115 return false;
3116 break;
3117 }
3118 return true;
3119}
3120
3121// returns the true if there is a next screen (from the current)
3122bool TelComIsThereANextScreen(void) {

Callers 1

TelComHandleAllEventsFunction · 0.85

Calls 1

TelcomRenderSetScreenFunction · 0.85

Tested by

no test coverage detected