components/prboom/p_lights.c
//
// EV_StartLightStrobing()
//
// Start strobing lights (usually from a trigger)
//
// Passed the line that activated the strobing
// Returns true
//
// jff 2/12/98 added int return value, fixed return
//
EV_StartLightStrobing()
Start strobing lights (usually from a trigger)

Passed the line that activated the strobing
Returns true

jff 2/12/98 added int return value, fixed return
EV_StartLightStrobing () Start strobing lights ( usually from a trigger ) Passed the line that activated the strobing Returns true jff 2 / 12 / 98 added int return value fixed return
int EV_StartLightStrobing(line_t* line)
{
  int   secnum;
  sector_t* sec;
  secnum = -1;
  while ((secnum = P_FindSectorFromLineTag(line,secnum)) >= 0)
  {
    sec = &sectors[secnum];
    if (P_SectorActive(lighting_special,sec)) 
      continue;
    P_SpawnStrobeFlash (sec,SLOWDARK, 0);
  }
  return 1;
}
int EV_StartLightStrobing ( line_t * line ) { int secnum ; sector_t * sec ; secnum = -1 ; while ( ( secnum = P_FindSectorFromLineTag ( line , secnum ) ) >= 0 ) { sec = & sectors [ secnum ] ; if ( P_SectorActive ( lighting_special , sec ) ) continue ; P_SpawnStrobeFlash ( sec , SLOWDARK , 0 ) ; } return 1 ; }
EV_StartLightStrobing()
Start strobing lights (usually from a trigger)
EV_StartLightStrobing () Start strobing lights ( usually from a trigger )
// start lights strobing in all sectors tagged same as line // if already doing a lighting function, don't start a second //jff 2/22/98