Skip to content

Commit d95f3fd

Browse files
committed
xrPhysics: fix phInfinity to be infinity
1 parent d38614b commit d95f3fd

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

src/xrGame/ik/limb.cxx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -738,8 +738,7 @@ int Limb::try_singularities(int solves, float& swivel_angle, float x[])
738738
//
739739
// Assumes that either SetGoal or SetGoalPos has been called first
740740
//
741-
// XXX: Shouldn't the phInfinity declaration be in a header for xrPhysics?
742-
extern XRPHYSICS_API const float phInfinity;
741+
743742
int Limb::Solve(float x[], float* new_swivel, float* new_pos)
744743
{
745744
int success;

src/xrPhysics/MathUtils.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#include "xrCore/_cylinder.h"
44
#include <ode/common.h>
55

6-
XRPHYSICS_API const float phInfinity = dInfinity;
76
/*
87
#include "MathUtils.h"
98
enum EBoxSideNearestPointCode

src/xrPhysics/MathUtils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#ifdef DEBUG
99
#include "xrCore/dump_string.h"
1010
#endif
11-
extern XRPHYSICS_API const float phInfinity;
11+
constexpr float phInfinity = std::numeric_limits<float>::infinity();
1212

1313
template <class T> struct _quaternion;
1414
typedef _quaternion<float> Fquaternion;

0 commit comments

Comments
 (0)