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;