diff --git a/src/hardware/hw_main.c b/src/hardware/hw_main.c index 062f3f303..9dbd52696 100644 --- a/src/hardware/hw_main.c +++ b/src/hardware/hw_main.c @@ -4434,15 +4434,11 @@ static void HWR_ProjectSprite(mobj_t *thing) size_t lumpoff; unsigned rot; UINT8 flip; - boolean vflip; - boolean mirrored; - boolean hflip; angle_t ang = 0; #ifdef ROTSPRITE angle_t camang = 0; #endif - boolean papersprite; INT32 heightsec, phs; INT32 dist = -1; @@ -4461,10 +4457,10 @@ static void HWR_ProjectSprite(mobj_t *thing) // uncapped/interpolation interpmobjstate_t interp = {0}; - vflip = (thing->eflags & MFE_VERTICALFLIP); - mirrored = thing->mirrored; - hflip = (!(thing->frame & FF_HORIZONTALFLIP) != !mirrored); - papersprite = (thing->frame & FF_PAPERSPRITE); + const boolean mirrored = thing->mirrored; + const boolean vflip = (thing->eflags & MFE_VERTICALFLIP); + const boolean hflip = (!(thing->frame & FF_HORIZONTALFLIP) != !mirrored); + const boolean papersprite = (thing->frame & FF_PAPERSPRITE); if (cv_maxinterpdist.value) dist = R_QuickCamDist(thing->x, thing->y);