components/prboom/wi_stuff.c
/* ====================================================================
 * WI_levelNameLump
 * Purpore: Returns the name of the graphic lump containing the name of
 *          the given level.
 * Args:    Episode and level, and buffer (must by 9 chars) to write to
 * Returns: void
 */
WI_levelNameLump
Purpore: Returns the name of the graphic lump containing the name of
the given level.
Args:    Episode and level, and buffer (must by 9 chars) to write to
Returns: void
WI_levelNameLump Purpore : Returns the name of the graphic lump containing the name of the given level . Args : Episode and level and buffer ( must by 9 chars ) to write to Returns : void
void WI_levelNameLump(int epis, int map, char* buf)
{
  if (gamemode == commercial) {
    sprintf(buf, "CWILV%2.2d", map);
  } else {
    sprintf(buf, "WILV%d%d", epis, map);
  }
}
void WI_levelNameLump ( int epis , int map , char * buf ) { if ( gamemode == commercial ) { sprintf ( buf , " " , map ) ; } else { sprintf ( buf , " " , epis , map ) ; } }
WI_levelNameLump
 Purpore: Returns the name of the graphic lump containing the name of
          the given level.
WI_levelNameLump Purpore : Returns the name of the graphic lump containing the name of the given level .