components/prboom/wi_stuff.c
// ====================================================================
// WI_Ticker
// Purpose: Do various updates every gametic, for stats, animation,
//          checking that intermission music is running, etc.
// Args:    none
// Returns: void
//
WI_Ticker
Purpose: Do various updates every gametic, for stats, animation,
checking that intermission music is running, etc.
Args:    none
Returns: void
WI_Ticker Purpose : Do various updates every gametic for stats animation checking that intermission music is running etc . Args : none Returns : void
void WI_Ticker(void)
{
  bcnt++;
  if (bcnt == 1)
  {
    if ( gamemode == commercial )
      S_ChangeMusic(mus_dm2int, true);
    else
      S_ChangeMusic(mus_inter, true);
  }
  WI_checkForAccelerate();
  switch (state)
  {
    case StatCount:
         if (deathmatch) WI_updateDeathmatchStats();
         else if (netgame) WI_updateNetgameStats();
         else WI_updateStats();
         break;
    case ShowNextLoc:
         WI_updateShowNextLoc();
         break;
    case NoState:
         WI_updateNoState();
         break;
  }
}
void WI_Ticker ( void ) { bcnt ++ ; if ( bcnt == 1 ) { if ( gamemode == commercial ) S_ChangeMusic ( mus_dm2int , true ) ; else S_ChangeMusic ( mus_inter , true ) ; } WI_checkForAccelerate ( ) ; switch ( state ) { case StatCount : if ( deathmatch ) WI_updateDeathmatchStats ( ) ; else if ( netgame ) WI_updateNetgameStats ( ) ; else WI_updateStats ( ) ; break ; case ShowNextLoc : WI_updateShowNextLoc ( ) ; break ; case NoState : WI_updateNoState ( ) ; break ; } }
WI_Ticker
Purpose: Do various updates every gametic, for stats, animation,
checking that intermission music is running, etc.
WI_Ticker Purpose : Do various updates every gametic for stats animation checking that intermission music is running etc .
// counter for general background animation // intermission music