mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-22 23:57:54 -05:00
Refactor vector EqualsScalar (#171)
* Refactor vector EqualsScalar * Fix param name
This commit is contained in:
parent
201125d209
commit
e6507b874a
3 changed files with 7 additions and 22 deletions
|
@ -23,12 +23,8 @@ MxLong LegoEntity::Notify(MxParam &p)
|
||||||
// OFFSET: LEGO1 0x100105f0
|
// OFFSET: LEGO1 0x100105f0
|
||||||
void LegoEntity::Reset()
|
void LegoEntity::Reset()
|
||||||
{
|
{
|
||||||
float value = 0.0f;
|
m_vec1.Fill(0);
|
||||||
m_vec1.EqualsScalar(&value);
|
m_vec2.Fill(0);
|
||||||
|
|
||||||
value = 0.0f;
|
|
||||||
m_vec2.EqualsScalar(&value);
|
|
||||||
|
|
||||||
m_unk50 = 0;
|
m_unk50 = 0;
|
||||||
m_unk54 = 0;
|
m_unk54 = 0;
|
||||||
m_unk58 = 0;
|
m_unk58 = 0;
|
||||||
|
|
|
@ -22,22 +22,9 @@ MxDSAction::MxDSAction()
|
||||||
this->m_loopCount = -1;
|
this->m_loopCount = -1;
|
||||||
|
|
||||||
this->SetType(MxDSType_Action);
|
this->SetType(MxDSType_Action);
|
||||||
|
this->m_location.Fill(FLT_MAX);
|
||||||
{
|
this->m_direction.Fill(FLT_MAX);
|
||||||
float value = FLT_MAX;
|
this->m_up.Fill(FLT_MAX);
|
||||||
this->m_location.EqualsScalar(&value);
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
|
||||||
float value = FLT_MAX;
|
|
||||||
this->m_direction.EqualsScalar(&value);
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
|
||||||
float value = FLT_MAX;
|
|
||||||
this->m_up.EqualsScalar(&value);
|
|
||||||
}
|
|
||||||
|
|
||||||
this->m_unk84 = 0;
|
this->m_unk84 = 0;
|
||||||
this->m_unk88 = 0;
|
this->m_unk88 = 0;
|
||||||
this->m_omni = NULL;
|
this->m_omni = NULL;
|
||||||
|
|
|
@ -95,6 +95,8 @@ class MxVector3 : public MxVector2
|
||||||
virtual void EqualsCross(MxVector3 *p_a, float *p_b);
|
virtual void EqualsCross(MxVector3 *p_a, float *p_b);
|
||||||
virtual void EqualsCross(MxVector3 *p_a, MxVector3 *p_b);
|
virtual void EqualsCross(MxVector3 *p_a, MxVector3 *p_b);
|
||||||
virtual void EqualsScalar(float *p_value);
|
virtual void EqualsScalar(float *p_value);
|
||||||
|
|
||||||
|
inline void Fill(float p_value) { EqualsScalar(&p_value); }
|
||||||
};
|
};
|
||||||
|
|
||||||
// VTABLE 0x100d45a0
|
// VTABLE 0x100d45a0
|
||||||
|
|
Loading…
Reference in a new issue