Even more minor fix to previous commit

git-svn-id: https://svn.eduke32.com/eduke32@7769 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-07-06 19:04:50 +00:00 committed by Christoph Oelckers
parent 8e8a1334e9
commit bf94922b27

View file

@ -3908,7 +3908,7 @@ void G_DoSpriteAnimations(int32_t ourx, int32_t oury, int32_t oura, int32_t smoo
break; break;
case RECON__STATIC: case RECON__STATIC:
if (tilehasmodelorvoxel(t->picnum,t->pal) >= 0 && !(spriteext[i].flags&SPREXT_NOTMD)) if (tilehasmodelorvoxel(t->picnum,t->pal) && !(spriteext[i].flags&SPREXT_NOTMD))
{ {
t->cstat &= ~4; t->cstat &= ~4;
break; break;
@ -4353,14 +4353,12 @@ skip:
t->shade = sprite[pSprite->owner].shade; t->shade = sprite[pSprite->owner].shade;
if (haveAction) if (haveAction)
break; break;
#ifdef USE_OPENGL
if (tilehasmodelorvoxel(pSprite->picnum,pSprite->pal) && !(spriteext[i].flags&SPREXT_NOTMD)) if (tilehasmodelorvoxel(pSprite->picnum,pSprite->pal) && !(spriteext[i].flags&SPREXT_NOTMD))
{ {
frameOffset = 0; frameOffset = 0;
t->cstat &= ~4; t->cstat &= ~4;
} }
else else
#endif
frameOffset = getofs_viewtype_mirrored<5>(t->cstat, t->ang - oura); frameOffset = getofs_viewtype_mirrored<5>(t->cstat, t->ang - oura);
t->picnum = pSprite->picnum+frameOffset+((T1(i)<4)*5); t->picnum = pSprite->picnum+frameOffset+((T1(i)<4)*5);