components/prboom/p_doors.c
//
// P_SpawnDoorRaiseIn5Mins()
//
// Spawn a door that opens after 5 minutes (called at level init)
//
// Passed the sector of the door, whose type specified the door action
// Returns nothing
//
P_SpawnDoorRaiseIn5Mins()
Spawn a door that opens after 5 minutes (called at level init)

Passed the sector of the door, whose type specified the door action
Returns nothing
P_SpawnDoorRaiseIn5Mins () Spawn a door that opens after 5 minutes ( called at level init ) Passed the sector of the door whose type specified the door action Returns nothing
void P_SpawnDoorRaiseIn5Mins
( sector_t* sec,
  int   secnum )
{
  vldoor_t* door;
  door = Z_Malloc ( sizeof(*door), PU_LEVSPEC, 0);
  memset(door, 0, sizeof(*door));
  P_AddThinker (&door->thinker);
  sec->ceilingdata = door; 
  sec->special = 0;
  door->thinker.function = T_VerticalDoor;
  door->sector = sec;
  door->direction = 2;
  door->type = raiseIn5Mins;
  door->speed = VDOORSPEED;
  door->topheight = P_FindLowestCeilingSurrounding(sec);
  door->topheight -= 4*FRACUNIT;
  door->topwait = VDOORWAIT;
  door->topcountdown = 5 * 60 * 35;
  door->line = NULL; 
  door->lighttag = 0; 
}
void P_SpawnDoorRaiseIn5Mins ( sector_t * sec , int secnum ) { vldoor_t * door ; door = Z_Malloc ( sizeof ( * door ) , PU_LEVSPEC , 0 ) ; memset ( door , 0 , sizeof ( * door ) ) ; P_AddThinker ( & door -> thinker ) ; sec -> ceilingdata = door ; sec -> special = 0 ; door -> thinker . function = T_VerticalDoor ; door -> sector = sec ; door -> direction = 2 ; door -> type = raiseIn5Mins ; door -> speed = VDOORSPEED ; door -> topheight = P_FindLowestCeilingSurrounding ( sec ) ; door -> topheight -= 4 * FRACUNIT ; door -> topwait = VDOORWAIT ; door -> topcountdown = 5 * 60 * 35 ; door -> line = NULL ; door -> lighttag = 0 ; }
P_SpawnDoorRaiseIn5Mins()
Spawn a door that opens after 5 minutes (called at level init)
P_SpawnDoorRaiseIn5Mins () Spawn a door that opens after 5 minutes ( called at level init )
//jff 2/22/98 // jff 1/31/98 remember line that triggered us /* killough 10/98: no lighting changes */