components/prboom/p_map.c
/* killough 8/1/98: used to test intersection between thing and line
 * assuming NO movement occurs -- used to avoid sticky situations.
 */
killough 8/1/98: used to test intersection between thing and line
assuming NO movement occurs -- used to avoid sticky situations.
killough 8 / 1 / 98 : used to test intersection between thing and line assuming NO movement occurs -- used to avoid sticky situations .
static int untouched(line_t *ld)
{
  fixed_t x, y, tmbbox[4];
  return
    (tmbbox[BOXRIGHT] = (x=tmthing->x)+tmthing->radius) <= ld->bbox[BOXLEFT] ||
    (tmbbox[BOXLEFT] = x-tmthing->radius) >= ld->bbox[BOXRIGHT] ||
    (tmbbox[BOXTOP] = (y=tmthing->y)+tmthing->radius) <= ld->bbox[BOXBOTTOM] ||
    (tmbbox[BOXBOTTOM] = y-tmthing->radius) >= ld->bbox[BOXTOP] ||
    P_BoxOnLineSide(tmbbox, ld) != -1;
}
static int untouched ( line_t * ld ) { fixed_t x , y , tmbbox [ 4 ] ; return ( tmbbox [ BOXRIGHT ] = ( x = tmthing -> x ) + tmthing -> radius ) <= ld -> bbox [ BOXLEFT ] || ( tmbbox [ BOXLEFT ] = x - tmthing -> radius ) >= ld -> bbox [ BOXRIGHT ] || ( tmbbox [ BOXTOP ] = ( y = tmthing -> y ) + tmthing -> radius ) <= ld -> bbox [ BOXBOTTOM ] || ( tmbbox [ BOXBOTTOM ] = y - tmthing -> radius ) >= ld -> bbox [ BOXTOP ] || P_BoxOnLineSide ( tmbbox , ld ) != -1 ; }
killough 8/1/98: used to test intersection between thing and line
 assuming NO movement occurs -- used to avoid sticky situations.
killough 8 / 1 / 98 : used to test intersection between thing and line assuming NO movement occurs -- used to avoid sticky situations .