components/prboom/p_spec.c
//
// P_CheckTag()
//
// Passed a line, returns true if the tag is non-zero or the line special
// allows no tag without harm. If compatibility, all linedef specials are
// allowed to have zero tag.
//
// Note: Only line specials activated by walkover, pushing, or shooting are
//       checked by this routine.
//
// jff 2/27/98 Added to check for zero tag allowed for regular special types
//
P_CheckTag()
Passed a line, returns true if the tag is non-zero or the line special
allows no tag without harm. If compatibility, all linedef specials are
allowed to have zero tag.

Only line specials activated by walkover, pushing, or shooting are
checked by this routine.

jff 2/27/98 Added to check for zero tag allowed for regular special types
P_CheckTag () Passed a line returns true if the tag is non - zero or the line special allows no tag without harm . If compatibility all linedef specials are allowed to have zero tag . Only line specials activated by walkover pushing or shooting are checked by this routine . jff 2 / 27 / 98 Added to check for zero tag allowed for regular special types
int P_CheckTag(line_t *line)
{
  if (comp[comp_zerotags] || line->tag)
    return 1;
  switch(line->special)
  {
    case 1:                 
    case 26:
    case 27:
    case 28:
    case 31:
    case 32:
    case 33:
    case 34:
    case 117:
    case 118:
    case 139:               
    case 170:
    case 79:
    case 35:
    case 138:
    case 171:
    case 81:
    case 13:
    case 192:
    case 169:
    case 80:
    case 12:
    case 194:
    case 173:
    case 157:
    case 104:
    case 193:
    case 172:
    case 156:
    case 17:
    case 195:               
    case 174:
    case 97:
    case 39:
    case 126:
    case 125:
    case 210:
    case 209:
    case 208:
    case 207:
    case 11:                
    case 52:
    case 197:
    case 51:
    case 124:
    case 198:
    case 48:                
    case 85:
      return 1;   
    default:
      break;
  }
  return 0;       
}
int P_CheckTag ( line_t * line ) { if ( comp [ comp_zerotags ] || line -> tag ) return 1 ; switch ( line -> special ) { case 1 : case 26 : case 27 : case 28 : case 31 : case 32 : case 33 : case 34 : case 117 : case 118 : case 139 : case 170 : case 79 : case 35 : case 138 : case 171 : case 81 : case 13 : case 192 : case 169 : case 80 : case 12 : case 194 : case 173 : case 157 : case 104 : case 193 : case 172 : case 156 : case 17 : case 195 : case 174 : case 97 : case 39 : case 126 : case 125 : case 210 : case 209 : case 208 : case 207 : case 11 : case 52 : case 197 : case 51 : case 124 : case 198 : case 48 : case 85 : return 1 ; default : break ; } return 0 ; }
P_CheckTag()
Passed a line, returns true if the tag is non-zero or the line special
allows no tag without harm.
P_CheckTag () Passed a line returns true if the tag is non - zero or the line special allows no tag without harm .
/* tag not zero, allowed, or
   * killough 11/98: compatibility option */ // Manual door specials // Lighting specials // Thing teleporters // Exits // Scrolling walls // zero tag allowed // zero tag not allowed