components/prboom/p_lights.c
//
// P_SpawnGlowingLight()
//
// Spawns a glowing light (smooth oscillation from min to max) thinker
//
// Passed the sector that spawned the thinker
// Returns nothing
//
P_SpawnGlowingLight()
Spawns a glowing light (smooth oscillation from min to max) thinker

Passed the sector that spawned the thinker
Returns nothing
P_SpawnGlowingLight () Spawns a glowing light ( smooth oscillation from min to max ) thinker Passed the sector that spawned the thinker Returns nothing
void P_SpawnGlowingLight(sector_t*  sector)
{
  glow_t* g;
  g = Z_Malloc( sizeof(*g), PU_LEVSPEC, 0);
  memset(g, 0, sizeof(*g));
  P_AddThinker(&g->thinker);
  g->sector = sector;
  g->minlight = P_FindMinSurroundingLight(sector,sector->lightlevel);
  g->maxlight = sector->lightlevel;
  g->thinker.function = T_Glow;
  g->direction = -1;
  sector->special &= ~31; 
}
void P_SpawnGlowingLight ( sector_t * sector ) { glow_t * g ; g = Z_Malloc ( sizeof ( * g ) , PU_LEVSPEC , 0 ) ; memset ( g , 0 , sizeof ( * g ) ) ; P_AddThinker ( & g -> thinker ) ; g -> sector = sector ; g -> minlight = P_FindMinSurroundingLight ( sector , sector -> lightlevel ) ; g -> maxlight = sector -> lightlevel ; g -> thinker . function = T_Glow ; g -> direction = -1 ; sector -> special &= ~ 31 ; }
P_SpawnGlowingLight()
Spawns a glowing light (smooth oscillation from min to max) thinker
P_SpawnGlowingLight () Spawns a glowing light ( smooth oscillation from min to max ) thinker
//jff 3/14/98 clear non-generalized sector type