File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 68
68
#include " i_interface.h"
69
69
#include " d_main.h"
70
70
71
+ const float MY_SQRT2 = 1.41421356237309504880 ; // sqrt(2)
71
72
// EXTERNAL DATA DECLARATIONS ----------------------------------------------
72
73
73
74
extern bool DrawFSHUD; // [RH] Defined in d_main.cpp
@@ -696,7 +697,7 @@ void FRenderViewpoint::SetViewAngle(const FViewWindow& viewWindow)
696
697
PitchSin = Angles.Pitch .Sin ();
697
698
PitchCos = Angles.Pitch .Cos ();
698
699
699
- floordistfact = M_SQRT2 + ( fabs (Cos) > fabs (Sin) ? 1.0 /fabs (Cos) : 1.0 /fabs (Sin) );
700
+ floordistfact = MY_SQRT2 + ( fabs (Cos) > fabs (Sin) ? 1.0 /fabs (Cos) : 1.0 /fabs (Sin) );
700
701
cotfloor = ( fabs (Cos) > fabs (Sin) ? fabs (Sin/Cos) : fabs (Cos/Sin) );
701
702
702
703
const DVector2 v = Angles.Yaw .ToVector ();
You can’t perform that action at this time.
0 commit comments