components/prboom/p_spec.c
//
// P_FindLowestFloorSurrounding()
//
// Returns the fixed point value of the lowest floor height
// in the sector passed or its surrounding sectors.
//
P_FindLowestFloorSurrounding()
Returns the fixed point value of the lowest floor height
in the sector passed or its surrounding sectors.
P_FindLowestFloorSurrounding () Returns the fixed point value of the lowest floor height in the sector passed or its surrounding sectors .
fixed_t P_FindLowestFloorSurrounding(sector_t* sec)
{
  int                 i;
  line_t*             check;
  sector_t*           other;
  fixed_t             floor = sec->floorheight;
  for (i=0 ;i < sec->linecount ; i++)
  {
    check = sec->lines[i];
    other = getNextSector(check,sec);
    if (!other)
      continue;
    if (other->floorheight < floor)
      floor = other->floorheight;
  }
  return floor;
}
fixed_t P_FindLowestFloorSurrounding ( sector_t * sec ) { int i ; line_t * check ; sector_t * other ; fixed_t floor = sec -> floorheight ; for ( i = 0 ; i < sec -> linecount ; i ++ ) { check = sec -> lines [ i ] ; other = getNextSector ( check , sec ) ; if ( ! other ) continue ; if ( other -> floorheight < floor ) floor = other -> floorheight ; } return floor ; }
P_FindLowestFloorSurrounding()
Returns the fixed point value of the lowest floor height
in the sector passed or its surrounding sectors.
P_FindLowestFloorSurrounding () Returns the fixed point value of the lowest floor height in the sector passed or its surrounding sectors .