| 3026 | } |
| 3027 | |
| 3028 | U8 cruise_bubble::state_missle_fly::collide_hazards() |
| 3029 | { |
| 3030 | NPCHazard* c[2]; |
| 3031 | c[0] = NULL; |
| 3032 | HAZ_Iterate(&cruise_bubble::state_missle_fly::hazard_check, c, 0xa000); |
| 3033 | |
| 3034 | if (c[0] == NULL) |
| 3035 | { |
| 3036 | return false; |
| 3037 | } |
| 3038 | |
| 3039 | if ((c[0]->flg_hazard & 0x200000)) |
| 3040 | { |
| 3041 | c[0]->MarkForRecycle(); |
| 3042 | } |
| 3043 | shared.hit_loc = cruise_bubble::get_missle_mat()->pos; |
| 3044 | return true; |
| 3045 | } |
| 3046 | |
| 3047 | bool cruise_bubble::state_missle_fly::hazard_check(NPCHazard& haz, void* context) |
| 3048 | { |
no test coverage detected