Fix THOK MD2's not rotating with camera

Will also fix any other case that an mobj has a skin and a single frame.
This commit is contained in:
Sryder13 2014-09-10 00:22:39 +01:00
parent 987f9f5c26
commit 781dd16fa6

View file

@ -1230,7 +1230,7 @@ void HWR_DrawMD2(gr_vissprite_t *spr)
else
p.z = FIXED_TO_FLOAT(spr->mobj->z);
if (spr->mobj->skin)
if (spr->mobj->skin && spr->mobj->sprite == SPR_PLAY)
sprdef = &((skin_t *)spr->mobj->skin)->spritedef;
else
sprdef = &sprites[spr->mobj->sprite];