From d05caf59632e039c64f1421a514026d5825cc242 Mon Sep 17 00:00:00 2001 From: Digiku Date: Tue, 8 Jan 2019 11:26:39 -0500 Subject: [PATCH] Update hw_md2.c -- add comment about anglef player->frameangle from Kart --- src/hardware/hw_md2.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/hardware/hw_md2.c b/src/hardware/hw_md2.c index 0cd4e97e2..8bc33ea0f 100644 --- a/src/hardware/hw_md2.c +++ b/src/hardware/hw_md2.c @@ -1075,7 +1075,14 @@ 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); + // \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); } else