make those const
This commit is contained in:
1 parent
e4343f0935
commit
e2a651e553
1 file changed
+4
-8
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user