1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-17 10:52:46 +00:00

Eliminate hsScalar and hsFixed

Modern CPUs support floats just fine... hsFixed was crazy.
This commit is contained in:
2012-01-21 02:03:37 -05:00
parent 5027b5a4ac
commit e020651e4b
584 changed files with 5401 additions and 6399 deletions

View File

@ -71,11 +71,11 @@ public:
void Stop(int index = -1){;}
void FastForwardPlay(int index = -1){;}
void FastForwardToggle(int index = -1){;}
void SetMin(const hsScalar m,int index = -1){;} // sets minimum falloff distance
void SetMax(const hsScalar m,int index = -1){;} // sets maximum falloff distance
void SetMin(const float m,int index = -1){;} // sets minimum falloff distance
void SetMax(const float m,int index = -1){;} // sets maximum falloff distance
virtual plAudible& SetTransform(const hsMatrix44& l2w, const hsMatrix44& w2l, int index = -1){return *this;}
hsScalar GetMin(int index = -1) const{return 0;}
hsScalar GetMax(int index = -1) const{return 0;}
float GetMin(int index = -1) const{return 0;}
float GetMax(int index = -1) const{return 0;}
void SetVelocity(const hsVector3 vel,int index = -1){;}
hsVector3 GetVelocity(int index = -1) const;
hsPoint3 GetPosition(int index = -1);

View File

@ -328,12 +328,12 @@ void plWinAudible::Stop(int index)
SND_APPLY_LOOP( index, Stop(), ; );
}
void plWinAudible::SetMin(const hsScalar m,int index)
void plWinAudible::SetMin(const float m,int index)
{
SND_APPLY_LOOP( index, SetMin( (int)m ), ; );
}
void plWinAudible::SetMax(const hsScalar m,int index)
void plWinAudible::SetMax(const float m,int index)
{
SND_APPLY_LOOP( index, SetMax( (int)m ), ; );
}
@ -367,14 +367,14 @@ void plWinAudible::ToggleMuted( int index )
}
}
hsScalar plWinAudible::GetMin(int index) const
float plWinAudible::GetMin(int index) const
{
return (hsScalar)(fSoundObjs[index]->GetMin());
return (float)(fSoundObjs[index]->GetMin());
}
hsScalar plWinAudible::GetMax(int index) const
float plWinAudible::GetMax(int index) const
{
return (hsScalar)(fSoundObjs[index]->GetMax());
return (float)(fSoundObjs[index]->GetMax());
}
void plWinAudible::SetVelocity(const hsVector3 vel,int index)

View File

@ -82,11 +82,11 @@ public:
void Stop(int index = -1);
void FastForwardPlay(int index = -1);
void FastForwardToggle(int index = -1);
void SetMin(const hsScalar m,int index = -1); // sets minimum falloff distance
void SetMax(const hsScalar m,int index = -1); // sets maximum falloff distance
void SetMin(const float m,int index = -1); // sets minimum falloff distance
void SetMax(const float m,int index = -1); // sets maximum falloff distance
void SetPosition(const hsPoint3 p, int index = -1);
hsScalar GetMin(int index = -1) const;
hsScalar GetMax(int index = -1) const;
float GetMin(int index = -1) const;
float GetMax(int index = -1) const;
virtual void SetVelocity(const hsVector3 vel,int index = -1);
hsVector3 GetVelocity(int index = -1) const;
hsPoint3 GetPosition(int index = -1);