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

Function QuickOpenCockpit

Descent3/cockpit.cpp:415–422  ·  view source on GitHub ↗

forces quick opening of cockpit

Source from the content-addressed store, hash-verified

413}
414// forces quick opening of cockpit
415void QuickOpenCockpit() {
416 Cockpit_info.frame_time = 0.0f;
417 Cockpit_info.state = COCKPIT_STATE_FUNCTIONAL;
418 Cockpit_info.this_keyframe = Cockpit_info.next_keyframe = COCKPIT_COMPLETE_FRAME;
419 FlagGaugesFunctional(STAT_ALL);
420 // load hud information for cockpit.
421 LoadCockpitInfo(Ships[Cockpit_info.ship_index].cockpit_name, NULL);
422}
423// forces quick closing of cockpit
424void QuickCloseCockpit() {
425 Cockpit_info.frame_time = 0.0f;

Callers 2

StartLevelFunction · 0.85
SetHUDModeFunction · 0.85

Calls 2

FlagGaugesFunctionalFunction · 0.85
LoadCockpitInfoFunction · 0.85

Tested by

no test coverage detected