Example #1
0
// Generate the list.  Run at the start, before merging
static void GenerateSpriteList(void)
{
    int i;

    InitSpriteList();

    // Add all sprites from the IWAD
    for (i = 0; i < iwad_sprites.numlumps; ++i)
        AddSpriteLump(&iwad_sprites.lumps[i]);
    // Add all sprites from the PWAD
    // (replaces IWAD sprites)

    for (i = 0; i < pwad_sprites.numlumps; ++i)
    {
        lumpinfo_t      *lump = &pwad_sprites.lumps[i];

        if (lump->wad_file->freedoom &&
            (!strcasecmp(lump->name, "MEDIA0") || !strcasecmp(lump->name, "STIMA0")))
            continue;

        AddSpriteLump(lump);
        if (i < iwad_sprites.numlumps && lump->size != iwad_sprites.lumps[i].size)
        {
            int j = 0;

            while (sproffsets[j].name[0])
            {
                if (!strcasecmp(sproffsets[j].name, lump->name))
                    sproffsets[j].canmodify = false;
                j++;
            }
        }
    }
}
Example #2
0
// Generate the list. Run at the start, before merging
static void GenerateSpriteList(void)
{
    InitSpriteList();

    // Add all sprites from the IWAD
    for (int i = 0; i < iwad_sprites.numlumps; i++)
        AddSpriteLump(iwad_sprites.lumps[i]);

    // Add all sprites from the PWAD
    // (replaces IWAD sprites)
    for (int i = 0; i < pwad_sprites.numlumps; i++)
        AddSpriteLump(pwad_sprites.lumps[i]);
}