Skip to content

Commit

Permalink
Fix THOK MD2's not rotating with camera
Browse files Browse the repository at this point in the history
Will also fix any other case that an mobj has a skin and a single frame.
  • Loading branch information
Sryder13 committed Sep 9, 2014
1 parent 987f9f5 commit 781dd16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hardware/hw_md2.c
Expand Up @@ -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];
Expand Down

0 comments on commit 781dd16

Please sign in to comment.