Browse Source

Replace isnan() reference with _isnan(). VS2010 didn't have it in std::cmath.

tickets/08/8/1
rarified 4 years ago
parent
commit
8ca8eb29d3
  1. 4
      Sources/Plasma/PubUtilLib/plInterp/plAnimTimeConvert.cpp

4
Sources/Plasma/PubUtilLib/plInterp/plAnimTimeConvert.cpp

@ -559,7 +559,7 @@ hsScalar plAnimTimeConvert::WorldToAnimTime(double wSecs)
{ {
float result = fmodf(secs - fLoopBegin, fLoopEnd - fLoopBegin) + fLoopBegin; float result = fmodf(secs - fLoopBegin, fLoopEnd - fLoopBegin) + fLoopBegin;
// if fLoopBegin == fLoopEnd == 0, result will not be a number // if fLoopBegin == fLoopEnd == 0, result will not be a number
if (!isnan(result)) if (!_isnan(result))
{ {
secs = result; secs = result;
wrapped = true; wrapped = true;
@ -583,7 +583,7 @@ hsScalar plAnimTimeConvert::WorldToAnimTime(double wSecs)
{ {
float result = fLoopEnd - fmodf(fLoopEnd - secs, fLoopEnd - fLoopBegin); float result = fLoopEnd - fmodf(fLoopEnd - secs, fLoopEnd - fLoopBegin);
// if fLoopBegin == fLoopEnd == 0, result will not be a number // if fLoopBegin == fLoopEnd == 0, result will not be a number
if (!isnan(result)) if (!_isnan(result))
{ {
secs = result; secs = result;
wrapped = true; wrapped = true;

Loading…
Cancel
Save