Close, kind of.
| 137 | |
| 138 | // Close, kind of. |
| 139 | NPCHazard* HAZ_Acquire() |
| 140 | { |
| 141 | NPCHazard* da_haz = g_hazards; |
| 142 | for (S32 i = 0; i < 64; i++) |
| 143 | { |
| 144 | if (!(da_haz->flg_hazard & 1)) |
| 145 | { |
| 146 | da_haz->WipeIt(); |
| 147 | da_haz->flg_hazard = 1; |
| 148 | g_cnt_activehaz++; |
| 149 | return da_haz; |
| 150 | } |
| 151 | da_haz++; |
| 152 | } |
| 153 | return NULL; |
| 154 | } |
| 155 | |
| 156 | S32 HAZ_AvailablePool() |
| 157 | { |
no test coverage detected