From 78a182a8a1aea0d7d47cf8975d45956bef6befc4 Mon Sep 17 00:00:00 2001 From: alufolie91 Date: Tue, 15 Aug 2023 05:14:18 +0200 Subject: [PATCH] oopsie --- src/hardware/hw_main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/hardware/hw_main.c b/src/hardware/hw_main.c index 30c198d98..a56660f81 100644 --- a/src/hardware/hw_main.c +++ b/src/hardware/hw_main.c @@ -4936,7 +4936,9 @@ void HWR_ProjectSprite(mobj_t *thing) float gz, gzt; spritedef_t *sprdef; spriteframe_t *sprframe; +#ifdef ROTSPRITE spriteinfo_t *sprinfo; +#endif size_t lumpoff; unsigned rot; UINT8 flip; @@ -5025,6 +5027,9 @@ void HWR_ProjectSprite(mobj_t *thing) thing->sprite = states[S_UNKNOWN].sprite; thing->frame = states[S_UNKNOWN].frame; sprdef = &sprites[thing->sprite]; +#ifdef ROTSPRITE + sprinfo = &spriteinfo[thing->sprite]; +#endif rot = thing->frame&FF_FRAMEMASK; thing->state->sprite = thing->sprite; thing->state->frame = thing->frame;