components/prboom/p_setup.c
// killough 4/4/98: delay using sidedefs until they are loaded
// killough 5/3/98: reformatted, cleaned up
killough 4/4/98: delay using sidedefs until they are loaded
killough 5/3/98: reformatted, cleaned up
killough 4 / 4 / 98 : delay using sidedefs until they are loaded killough 5 / 3 / 98 : reformatted cleaned up
static void P_LoadLineDefs2(int lump)
{
  int i = numlines;
  register line_t *ld = lines;
  for (;i--;ld++)
    {
      ld->frontsector = sides[ld->sidenum[0]].sector; 
      ld->backsector  = ld->sidenum[1]!=NO_INDEX ? sides[ld->sidenum[1]].sector : 0;
      switch (ld->special)
        {                       
          int lump, j;
        case 260:               
            lump = sides[*ld->sidenum].special; 
            if (!ld->tag)                       
              ld->tranlump = lump;              
            else
              for (j=0;j<numlines;j++)          
                if (lines[j].tag == ld->tag)    
                  lines[j].tranlump = lump;
            break;
        }
    }
}
static void P_LoadLineDefs2 ( int lump ) { int i = numlines ; register line_t * ld = lines ; for ( ; i -- ; ld ++ ) { ld -> frontsector = sides [ ld -> sidenum [ 0 ] ] . sector ; ld -> backsector = ld -> sidenum [ 1 ] != NO_INDEX ? sides [ ld -> sidenum [ 1 ] ] . sector : 0 ; switch ( ld -> special ) { int lump , j ; case 260 : lump = sides [ * ld -> sidenum ] . special ; if ( ! ld -> tag ) ld -> tranlump = lump ; else for ( j = 0 ; j < numlines ; j ++ ) if ( lines [ j ] . tag == ld -> tag ) lines [ j ] . tranlump = lump ; break ; } } }
killough 4/4/98: delay using sidedefs until they are loaded
killough 5/3/98: reformatted, cleaned up
killough 4 / 4 / 98 : delay using sidedefs until they are loaded killough 5 / 3 / 98 : reformatted cleaned up
//e6y: Can't be NO_INDEX here // killough 4/11/98: handle special types // killough 4/11/98: translucent 2s textures // translucency from sidedef // if tag==0, // affect this linedef only // if tag!=0, // affect all matching linedefs