components/prboom/g_game.c
/* killough 12/98:
 * This function returns a signature for the current wad.
 * It is used to distinguish between wads, for the purposes
 * of savegame compatibility warnings, and options lookups.
 */
killough 12/98:
This function returns a signature for the current wad.
It is used to distinguish between wads, for the purposes
of savegame compatibility warnings, and options lookups.
killough 12 / 98 : This function returns a signature for the current wad . It is used to distinguish between wads for the purposes of savegame compatibility warnings and options lookups .
static uint_64_t G_UpdateSignature(uint_64_t s, const char *name)
{
  int i, lump = W_CheckNumForName(name);
  if (lump != -1 && (i = lump+10) < numlumps)
    do
      {
  int size = W_LumpLength(i);
  const byte *p = W_CacheLumpNum(i);
  while (size--)
    s <<= 1, s += *p++;
  W_UnlockLumpNum(i);
      }
    while (--i > lump);
  return s;
}
static uint_64_t G_UpdateSignature ( uint_64_t s , const char * name ) { int i , lump = W_CheckNumForName ( name ) ; if ( lump != -1 && ( i = lump + 10 ) < numlumps ) do { int size = W_LumpLength ( i ) ; const byte * p = W_CacheLumpNum ( i ) ; while ( size -- ) s <<= 1 , s += * p ++ ; W_UnlockLumpNum ( i ) ; } while ( -- i > lump ) ; return s ; }
killough 12/98:
 This function returns a signature for the current wad.
killough 12 / 98 : This function returns a signature for the current wad .