///////////////////////////////////////////////////////////////////////// returns the submodel number of the monitor requested
| 591 | // |
| 592 | // returns the submodel number of the monitor requested |
| 593 | bsp_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 |
| 603 | poly_model *CockpitGetPolyModel() { |
| 604 | ASSERT(Cockpit_info.model_num > -1); |
no outgoing calls
no test coverage detected