Skip to content

Commit

Permalink
xrPhysics: fix phInfinity to be infinity
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed May 23, 2018
1 parent d38614b commit d95f3fd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/xrGame/ik/limb.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -738,8 +738,7 @@ int Limb::try_singularities(int solves, float& swivel_angle, float x[])
//
// Assumes that either SetGoal or SetGoalPos has been called first
//
// XXX: Shouldn't the phInfinity declaration be in a header for xrPhysics?
extern XRPHYSICS_API const float phInfinity;

int Limb::Solve(float x[], float* new_swivel, float* new_pos)
{
int success;
Expand Down
1 change: 0 additions & 1 deletion src/xrPhysics/MathUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include "xrCore/_cylinder.h"
#include <ode/common.h>

XRPHYSICS_API const float phInfinity = dInfinity;
/*
#include "MathUtils.h"
enum EBoxSideNearestPointCode
Expand Down
2 changes: 1 addition & 1 deletion src/xrPhysics/MathUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#ifdef DEBUG
#include "xrCore/dump_string.h"
#endif
extern XRPHYSICS_API const float phInfinity;
constexpr float phInfinity = std::numeric_limits<float>::infinity();

template <class T> struct _quaternion;
typedef _quaternion<float> Fquaternion;
Expand Down

0 comments on commit d95f3fd

Please sign in to comment.