heretic: 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:
parent
2d6a5bc38c
commit
8fc4e10f01
1 changed files with 1 additions and 1 deletions
|
|
@ -1006,7 +1006,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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue