sets the hud item state(what's visible, how it's drawn, etc)
| 781 | |
| 782 | // sets the hud item state(what's visible, how it's drawn, etc) |
| 783 | void SetHUDState(uint16_t hud_mask, uint16_t hud_gr_mask) { |
| 784 | int i; |
| 785 | |
| 786 | Hud_stat_mask = (hud_mask | hud_gr_mask); |
| 787 | |
| 788 | // now go through each hud item, check if it's hud stat mask includes the requested hud_gr_mask |
| 789 | // if it does, then set hud mask to graphical |
| 790 | for (i = 0; i < MAX_HUD_ITEMS; i++) { |
| 791 | HUD_array[i].stat &= ~(STAT_GRAPHICAL); |
| 792 | if (HUD_array[i].stat & hud_gr_mask) |
| 793 | HUD_array[i].stat |= STAT_GRAPHICAL; |
| 794 | } |
| 795 | } |
| 796 | |
| 797 | // initializes items based off their type (information, etc.) |
| 798 | void InitHUDItem(int new_item, tHUDItem *item) { |
no outgoing calls
no test coverage detected