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

Function QuickCloseCockpit

Descent3/cockpit.cpp:424–429  ·  view source on GitHub ↗

forces quick closing of cockpit

Source from the content-addressed store, hash-verified

422}
423// forces quick closing of cockpit
424void QuickCloseCockpit() {
425 Cockpit_info.frame_time = 0.0f;
426 Cockpit_info.state = COCKPIT_STATE_DORMANT;
427 Cockpit_info.this_keyframe = Cockpit_info.next_keyframe = COCKPIT_DORMANT_FRAME;
428 FlagGaugesNonfunctional(STAT_ALL);
429}
430// resizes cockpit.
431void ResizeCockpit() { Cockpit_info.resized = true; }
432// cockpit orientation.

Callers 1

SetHUDModeFunction · 0.85

Calls 1

FlagGaugesNonfunctionalFunction · 0.85

Tested by

no test coverage detected