components/prboom/wi_stuff.c
// ====================================================================
// WI_initVariables
// Purpose: Initialize the intermission information structure
//          Note: wbstartstruct_t is defined in d_player.h
// Args:    wbstartstruct -- pointer to the structure with the data
// Returns: void
//
WI_initVariables
Purpose: Initialize the intermission information structure
Note: wbstartstruct_t is defined in d_player.h
Args:    wbstartstruct -- pointer to the structure with the data
Returns: void
WI_initVariables Purpose : Initialize the intermission information structure Note : wbstartstruct_t is defined in d_player . h Args : wbstartstruct -- pointer to the structure with the data Returns : void
void WI_initVariables(wbstartstruct_t* wbstartstruct)
{
  wbs = wbstartstruct;
#ifdef RANGECHECKING
  if (gamemode != commercial)
  {
    if ( gamemode == retail )
      RNGCHECK(wbs->epsd, 0, 3);
    else
      RNGCHECK(wbs->epsd, 0, 2);
  }
  else
  {
    RNGCHECK(wbs->last, 0, 8);
    RNGCHECK(wbs->next, 0, 8);
  }
  RNGCHECK(wbs->pnum, 0, MAXPLAYERS);
  RNGCHECK(wbs->pnum, 0, MAXPLAYERS);
#endif
  acceleratestage = 0;
  cnt = bcnt = 0;
  firstrefresh = 1;
  me = wbs->pnum;
  plrs = wbs->plyr;
  if (!wbs->maxkills)
    wbs->maxkills = 1;  
  if (!wbs->maxitems)
    wbs->maxitems = 1;
  if ( gamemode != retail )
    if (wbs->epsd > 2)
      wbs->epsd -= 3;
}
void WI_initVariables ( wbstartstruct_t * wbstartstruct ) { wbs = wbstartstruct ; #ifdef RANGECHECKING if ( gamemode != commercial ) { if ( gamemode == retail ) RNGCHECK ( wbs -> epsd , 0 , 3 ) ; else RNGCHECK ( wbs -> epsd , 0 , 2 ) ; } else { RNGCHECK ( wbs -> last , 0 , 8 ) ; RNGCHECK ( wbs -> next , 0 , 8 ) ; } RNGCHECK ( wbs -> pnum , 0 , MAXPLAYERS ) ; RNGCHECK ( wbs -> pnum , 0 , MAXPLAYERS ) ; #endif acceleratestage = 0 ; cnt = bcnt = 0 ; firstrefresh = 1 ; me = wbs -> pnum ; plrs = wbs -> plyr ; if ( ! wbs -> maxkills ) wbs -> maxkills = 1 ; if ( ! wbs -> maxitems ) wbs -> maxitems = 1 ; if ( gamemode != retail ) if ( wbs -> epsd > 2 ) wbs -> epsd -= 3 ; }
WI_initVariables
Purpose: Initialize the intermission information structure
Note: wbstartstruct_t is defined in d_player.h
Args:    wbstartstruct -- pointer to the structure with the data
Returns: void
WI_initVariables Purpose : Initialize the intermission information structure Note : wbstartstruct_t is defined in d_player . h Args : wbstartstruct -- pointer to the structure with the data Returns : void
// probably only useful in MAP30