MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / collide_hazards

Method collide_hazards

src/SB/Game/zEntCruiseBubble.cpp:3028–3045  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

updateMethod · 0.95

Calls 2

HAZ_IterateFunction · 0.85
get_missle_matFunction · 0.85

Tested by

no test coverage detected