mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-20 04:09:16 +00:00
Eliminate hsScalar and hsFixed
Modern CPUs support floats just fine... hsFixed was crazy.
This commit is contained in:
@ -242,7 +242,7 @@ plPointBlend::~plPointBlend()
|
||||
// ------------
|
||||
hsBool plPointBlend::IsStoppedAt(double time)
|
||||
{
|
||||
hsScalar blend = fChannelBias->Value(time);
|
||||
float blend = fChannelBias->Value(time);
|
||||
if (blend == 0)
|
||||
return fPointA->IsStoppedAt(time);
|
||||
if (blend == 1)
|
||||
@ -257,7 +257,7 @@ const hsPoint3 &plPointBlend::Value(double time)
|
||||
{
|
||||
if (fPointA && fPointB)
|
||||
{
|
||||
hsScalar curBlend = fChannelBias->Value(time);
|
||||
float curBlend = fChannelBias->Value(time);
|
||||
if(curBlend == 0) {
|
||||
fPointA->Value(fResult, time);
|
||||
} else {
|
||||
@ -360,7 +360,7 @@ const hsPoint3 & plPointControllerChannel::Value(double time)
|
||||
// VALUE(time)
|
||||
const hsPoint3 & plPointControllerChannel::Value(double time, plControllerCacheInfo *cache)
|
||||
{
|
||||
fController->Interp((hsScalar)time, &fResult, cache);
|
||||
fController->Interp((float)time, &fResult, cache);
|
||||
return fResult;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user