Update hw_md2.c -- player->frameangle fix

This commit is contained in:
Digiku 2019-01-08 11:22:33 -05:00
parent 6ec6622610
commit 090ecdb6e5

View file

@ -1043,7 +1043,11 @@ void HWR_DrawMD2(gr_vissprite_t *spr)
if (sprframe->rotate)
{
const fixed_t anglef = AngleFixed(spr->mobj->angle);
fixed_t anglef = AngleFixed(spr->mobj->angle);
if (spr->mobj->player)
anglef = AngleFixed(spr->mobj->player->frameangle);
else
anglef = AngleFixed(spr->mobj->angle);
p.angley = FIXED_TO_FLOAT(anglef);
}
else