From e2a651e5538a89154700a109e203fef030df71d6 Mon Sep 17 00:00:00 2001 From: Alug Date: Wed, 4 Dec 2024 14:20:15 +0100 Subject: [PATCH] make those const --- src/hardware/hw_main.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) 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);