Skip to content

Commit

Permalink
Doom|Fixed: All texture animations are defined for all versions
Browse files Browse the repository at this point in the history
Unlike the switches, all texture animations are present in all versions
of the game despite there being no graphics which use them in IWADs.

Consequently mod authors have made use of this as a means to insert
"new" animations in their mods.
  • Loading branch information
danij-deng committed Feb 26, 2012
1 parent c56a76b commit f8adfe0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions doomsday/plugins/jdoom/src/p_spec.c
Expand Up @@ -91,6 +91,7 @@ static void shootSpecialLine(mobj_t* thing, linedef_t* line);
// These arrays are treated as a hardcoded replacements for data that can be
// loaded from a lump, so we need to use little-endian byte ordering.
static animdef_t animsShared[] = {
// Doom anims:
{0, "BLOOD3", "BLOOD1", MACRO_LONG(8)},
{0, "FWATER4", "FWATER1", MACRO_LONG(8)},
{0, "SWATER4", "SWATER1", MACRO_LONG(8)},
Expand All @@ -106,10 +107,8 @@ static animdef_t animsShared[] = {
{1, "SLADRIP3", "SLADRIP1", MACRO_LONG(8)},
{1, "WFALL4", "WFALL1", MACRO_LONG(8)},
{1, "BLODGR4", "BLODGR1", MACRO_LONG(8)},
{-1, "\0", "\0"}
};

static animdef_t animsDoom2[] = {
// Doom 2 anims:
{0, "RROCK08", "RROCK05", MACRO_LONG(8)},
{0, "SLIME04", "SLIME01", MACRO_LONG(8)},
{0, "SLIME08", "SLIME05", MACRO_LONG(8)},
Expand Down Expand Up @@ -248,8 +247,6 @@ void P_InitPicAnims(void)

VERBOSE( Con_Message("Registering default texture animations...\n") );
loadAnimDefs(animsShared, false);
if(gameModeBits & GM_ANY_DOOM2)
loadAnimDefs(animsDoom2, false);
}

boolean P_ActivateLine(linedef_t *ld, mobj_t *mo, int side, int actType)
Expand Down

0 comments on commit f8adfe0

Please sign in to comment.