components/prboom/wi_stuff.c
/* ====================================================================
 * WI_loadData
 * Purpose: Initialize intermission data such as background graphics,
 *          patches, map names, etc.
 * Args:    none
 * Returns: void
 *
 * CPhipps - modified for new wad lump handling.
 *         - no longer preload most graphics, other funcs can use
 *           them by name
 */
WI_loadData
Purpose: Initialize intermission data such as background graphics,
patches, map names, etc.
Args:    none
Returns: void

modified for new wad lump handling.
- no longer preload most graphics, other funcs can use
them by name
WI_loadData Purpose : Initialize intermission data such as background graphics patches map names etc . Args : none Returns : void modified for new wad lump handling . - no longer preload most graphics other funcs can use them by name
void WI_loadData(void)
{
  int   i;
  int   j;
  char  name[9];  
  anim_t* a;
  if (gamemode != commercial)
  {
    if (wbs->epsd < 3)
    {
      for (j=0;j<NUMANIMS[wbs->epsd];j++)
      {
        a = &anims[wbs->epsd][j];
        for (i=0;i<a->nanims;i++)
        {
          if (wbs->epsd != 1 || j != 8)
          {
            sprintf(name, "WIA%d%.2d%.2d", wbs->epsd, j, i);
            R_SetPatchNum(&a->p[i], name);
          }
          else
          {
            a->p[i] = anims[1][4].p[i];
          }
        }
      }
    }
  }
  for (i=0;i<10;i++)
  {
    sprintf(name, "WINUM%d", i);
    R_SetPatchNum(&num[i], name);
  }
}
void WI_loadData ( void ) { int i ; int j ; char name [ 9 ] ; anim_t * a ; if ( gamemode != commercial ) { if ( wbs -> epsd < 3 ) { for ( j = 0 ; j < NUMANIMS [ wbs -> epsd ] ; j ++ ) { a = & anims [ wbs -> epsd ] [ j ] ; for ( i = 0 ; i < a -> nanims ; i ++ ) { if ( wbs -> epsd != 1 || j != 8 ) { sprintf ( name , " " , wbs -> epsd , j , i ) ; R_SetPatchNum ( & a -> p [ i ] , name ) ; } else { a -> p [ i ] = anims [ 1 ] [ 4 ] . p [ i ] ; } } } } } for ( i = 0 ; i < 10 ; i ++ ) { sprintf ( name , " " , i ) ; R_SetPatchNum ( & num [ i ] , name ) ; } }
WI_loadData
 Purpose: Initialize intermission data such as background graphics,
          patches, map names, etc.
WI_loadData Purpose : Initialize intermission data such as background graphics patches map names etc .
// limited to 8 characters // MONDO HACK! // animations // HACK ALERT! // numbers 0-9