mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-12-11 13:21:56 +00:00
Update hw_md2.c -- add comment about anglef player->frameangle from Kart
This commit is contained in:
parent
bbcc82e9b4
commit
d05caf5963
1 changed files with 8 additions and 1 deletions
|
@ -1075,7 +1075,14 @@ void HWR_DrawMD2(gr_vissprite_t *spr)
|
||||||
|
|
||||||
if (sprframe->rotate)
|
if (sprframe->rotate)
|
||||||
{
|
{
|
||||||
const fixed_t anglef = AngleFixed(spr->mobj->angle);
|
fixed_t anglef = AngleFixed(spr->mobj->angle);
|
||||||
|
// \todo adapt for 2.2 directionchar? The below code is from Kart
|
||||||
|
#if 0
|
||||||
|
if (spr->mobj->player)
|
||||||
|
anglef = AngleFixed(spr->mobj->player->frameangle);
|
||||||
|
else
|
||||||
|
anglef = AngleFixed(spr->mobj->angle);
|
||||||
|
#endif
|
||||||
p.angley = FIXED_TO_FLOAT(anglef);
|
p.angley = FIXED_TO_FLOAT(anglef);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue