1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-18 19:29:09 +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

@ -70,7 +70,7 @@ class pfKIMsg : public plMessage
std::wstring fString;
// for the SetChatFadeDelay
hsScalar fDelay;
float fDelay;
// other values
int32_t fValue;
@ -231,8 +231,8 @@ class pfKIMsg : public plMessage
void SetFlags( uint32_t flags ) { fFlags = flags; }
uint32_t GetFlags( void ) const { return fFlags; }
void SetDelay( hsScalar delay ) { fDelay = delay; }
hsScalar GetDelay( void ) { return fDelay; }
void SetDelay( float delay ) { fDelay = delay; }
float GetDelay( void ) { return fDelay; }
void SetIntValue( int32_t value ) { fValue = value; }
int32_t GetIntValue( void ) { return fValue; }

View File

@ -48,7 +48,7 @@ class plArmatureEffectMsg : public plEventCallbackMsg
{
public:
plArmatureEffectMsg() : plEventCallbackMsg(), fTriggerIdx(-1) {}
plArmatureEffectMsg(const plKey &receiver, CallbackEvent e, int idx=0, hsScalar t=0, int16_t repeats=-1, uint16_t user=0) :
plArmatureEffectMsg(const plKey &receiver, CallbackEvent e, int idx=0, float t=0, int16_t repeats=-1, uint16_t user=0) :
plEventCallbackMsg(receiver, e, idx, t, repeats, user), fTriggerIdx(-1) {}
CLASSNAME_REGISTER( plArmatureEffectMsg );

View File

@ -58,7 +58,7 @@ public:
hsColorRGBA fColor;
uint8_t fLayer;
uint8_t fDelta;
hsScalar fWeight;
float fWeight;
plClothingMsg() : fCommands(0), fItemKey(nil), fLayer(0), fDelta(0), fWeight(0) { fColor.Set(1.f, 1.f, 1.f, 1.f); }
~plClothingMsg() {}