|
|
@ -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; |
|
|
|