From 5de507694b0ca43739033d75cf20fcf7ea31a2dd Mon Sep 17 00:00:00 2001 From: James Haley Date: Sat, 18 Sep 2010 17:35:57 +0000 Subject: Tons of warnings fixed - now only 7 warnings at warning level 3, and most of those are outside of our own code (get on those signed/unsigned mismatches in the midi code, fraggle ;) Subversion-branch: /branches/strife-branch Subversion-revision: 2110 --- src/strife/p_spec.c | 50 +++++++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 25 deletions(-) (limited to 'src/strife/p_spec.c') diff --git a/src/strife/p_spec.c b/src/strife/p_spec.c index 467a424c..2111cdc3 100644 --- a/src/strife/p_spec.c +++ b/src/strife/p_spec.c @@ -138,7 +138,7 @@ animdef_t animdefs[] = { false, "F_FAN2", "F_FAN1", 4}, { false, "F_CONVY2", "F_CONVY1", 4}, { false, "F_RDALN4", "F_RDALN1", 4}, - { -1, NULL, NULL, 0}, + { -1, "", "", 0}, }; anim_t anims[MAXANIMS]; @@ -169,35 +169,35 @@ void P_InitPicAnims (void) startname = DEH_String(animdefs[i].startname); endname = DEH_String(animdefs[i].endname); - if (animdefs[i].istexture) - { - // different episode ? - if (R_CheckTextureNumForName(startname) == -1) - continue; + if (animdefs[i].istexture) + { + // different episode ? + if (R_CheckTextureNumForName(startname) == -1) + continue; - lastanim->picnum = R_TextureNumForName(endname); - lastanim->basepic = R_TextureNumForName(startname); - } - else - { - if (W_CheckNumForName(startname) == -1) - continue; + lastanim->picnum = R_TextureNumForName(endname); + lastanim->basepic = R_TextureNumForName(startname); + } + else + { + if (W_CheckNumForName(startname) == -1) + continue; - lastanim->picnum = R_FlatNumForName(endname); - lastanim->basepic = R_FlatNumForName(startname); - } + lastanim->picnum = R_FlatNumForName(endname); + lastanim->basepic = R_FlatNumForName(startname); + } - lastanim->istexture = animdefs[i].istexture; - lastanim->numpics = lastanim->picnum - lastanim->basepic + 1; + lastanim->istexture = animdefs[i].istexture; + lastanim->numpics = lastanim->picnum - lastanim->basepic + 1; - if (lastanim->numpics < 2) - I_Error ("P_InitPicAnims: bad cycle from %s to %s", - startname, endname); - - lastanim->speed = animdefs[i].speed; - lastanim++; + if (lastanim->numpics < 2) + I_Error ("P_InitPicAnims: bad cycle from %s to %s", + startname, endname); + + lastanim->speed = animdefs[i].speed; + lastanim++; } - + } // villsa [STRIFE] terrain type definitions -- cgit v1.2.3