those will never be changed ever

This commit is contained in:
Alug committed 2025-01-01 17:19:29 +01:00
1 parent 3ade8b09c5
commit 5e1d43b5af
1 file changed
+2 -6
+2 -6
View File
@@ -701,9 +701,7 @@ const char *G_BuildMapName(INT32 map)
*/
INT16 G_ClipAimingPitch(INT32 *aiming)
{
INT32 limitangle;
limitangle = ANGLE_90 - 1;
static const INT32 limitangle = ANGLE_90 - 1;
if (*aiming > limitangle)
*aiming = limitangle;
@@ -715,10 +713,8 @@ INT16 G_ClipAimingPitch(INT32 *aiming)
INT16 G_SoftwareClipAimingPitch(INT32 *aiming)
{
INT32 limitangle;
// note: the current software mode implementation doesn't have true perspective
limitangle = ANGLE_90 - ANG10; // Some viewing fun, but not too far down...
static const INT32 limitangle = ANGLE_90 - ANG10; // Some viewing fun, but not too far down...
if (*aiming > limitangle)
*aiming = limitangle;