components/prboom/p_spec.c
//
// twoSided()
//
// Given the sector number and the line number,
//  it will tell you whether the line is two-sided or not.
//
// modified to return actual two-sidedness rather than presence
// of 2S flag unless compatibility optioned
//
twoSided()
Given the sector number and the line number,
it will tell you whether the line is two-sided or not.

modified to return actual two-sidedness rather than presence
of 2S flag unless compatibility optioned
twoSided () Given the sector number and the line number it will tell you whether the line is two - sided or not . modified to return actual two - sidedness rather than presence of 2S flag unless compatibility optioned
int twoSided
( int   sector,
  int   line )
{
  return comp[comp_model] ?
    (sectors[sector].lines[line])->flags & ML_TWOSIDED
    :
    (sectors[sector].lines[line])->sidenum[1] != NO_INDEX;
}
int twoSided ( int sector , int line ) { return comp [ comp_model ] ? ( sectors [ sector ] . lines [ line ] ) -> flags & ML_TWOSIDED : ( sectors [ sector ] . lines [ line ] ) -> sidenum [ 1 ] != NO_INDEX ; }
twoSided()
Given the sector number and the line number,
it will tell you whether the line is two-sided or not.
twoSided () Given the sector number and the line number it will tell you whether the line is two - sided or not .
//jff 1/26/98 return what is actually needed, whether the line //has two sidedefs, rather than whether the 2S flag is set