components/prboom/p_map.c
/* killough 8/9/98: whether to telefrag at exit */
killough 8/9/98: whether to telefrag at exit
killough 8 / 9 / 98 : whether to telefrag at exit
boolean PIT_StompThing (mobj_t* thing)
  {
  fixed_t blockdist;
  if (thing == tmthing)
    return true;
  if (!(thing->flags & MF_SHOOTABLE)) 
    return true;
  blockdist = thing->radius + tmthing->radius;
  if (D_abs(thing->x - tmx) >= blockdist || D_abs(thing->y - tmy) >= blockdist)
    return true; 
  if (!telefrag)  
    return false;
  P_DamageMobj (thing, tmthing, tmthing, 10000); 
  return true;
  }
boolean PIT_StompThing ( mobj_t * thing ) { fixed_t blockdist ; if ( thing == tmthing ) return true ; if ( ! ( thing -> flags & MF_SHOOTABLE ) ) return true ; blockdist = thing -> radius + tmthing -> radius ; if ( D_abs ( thing -> x - tmx ) >= blockdist || D_abs ( thing -> y - tmy ) >= blockdist ) return true ; if ( ! telefrag ) return false ; P_DamageMobj ( thing , tmthing , tmthing , 10000 ) ; return true ; }
killough 8/9/98: whether to telefrag at exit
killough 8 / 9 / 98 : whether to telefrag at exit
// phares 9/10/98: moved this self-check to start of routine // don't clip against self // Can't shoot it? Can't stomp it! // didn't hit it // monsters don't stomp things except on boss level // killough 8/9/98: make consistent across all levels // Stomp!