fix using abs() on unsigned
This commit is contained in:
1 parent
dd83652b71
commit
323c89dbaf
1 file changed
+1
-1
@@ -338,7 +338,7 @@ angle_t gld_FrustumAngle(void)
|
||||
}
|
||||
|
||||
// If the pitch is larger than this you can look all around at a FOV of 90
|
||||
if (abs(aimingangle) > 46 * ANG1)
|
||||
if (abs((signed)aimingangle) > 46 * ANG1)
|
||||
return 0xffffffff;
|
||||
|
||||
// ok, this is a gross hack that barely works...
|
||||
|
||||
Reference in new issue
Block a user