hexen: replace shifted negative value with negative of shifted value

This fixes a "Shifting a negative value is undefined behaviour"
cppcheck error.
This commit is contained in:
Fabian Greffrath 2019-01-28 10:02:29 +01:00
parent 8fc4e10f01
commit a03d93810b

View file

@ -1033,7 +1033,7 @@ void R_DrawMasked(void)
//
// Added for the sideviewing with an external device
if (viewangleoffset <= 1024 << ANGLETOFINESHIFT || viewangleoffset >=
-1024 << ANGLETOFINESHIFT)
-(1024 << ANGLETOFINESHIFT))
{ // don't draw on side views
R_DrawPlayerSprites();
}