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

Function CockpitGetMonitorSubmodel

Descent3/cockpit.cpp:593–601  ·  view source on GitHub ↗

///////////////////////////////////////////////////////////////////////// returns the submodel number of the monitor requested

Source from the content-addressed store, hash-verified

591//
592// returns the submodel number of the monitor requested
593bsp_info *CockpitGetMonitorSubmodel(uint16_t monitor_flag) {
594 int i;
595 ASSERT(Cockpit_info.model_num > -1);
596 for (i = 0; i < Poly_models[Cockpit_info.model_num].n_models; i++) {
597 if (Poly_models[Cockpit_info.model_num].submodel[i].flags & monitor_flag)
598 return &Poly_models[Cockpit_info.model_num].submodel[i];
599 }
600 return NULL;
601}
602// returns the polymodel for the hud
603poly_model *CockpitGetPolyModel() {
604 ASSERT(Cockpit_info.model_num > -1);

Callers 2

RenderCockpitFunction · 0.85
InitGaugesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected