ref: a03d93810b22294c8c4f2e466bba8795f81b9193
parent: 8fc4e10f01a7c216163a9b607435afb44959aa8a
author: Fabian Greffrath <[email protected]>
date: Mon Jan 28 05:02:29 EST 2019
hexen: replace shifted negative value with negative of shifted value This fixes a "Shifting a negative value is undefined behaviour" cppcheck error.
--- a/src/hexen/r_things.c
+++ b/src/hexen/r_things.c
@@ -1033,7 +1033,7 @@
//
// 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();
}