mirror of
https://github.com/zeldaret/ss
synced 2026-05-23 23:05:20 -04:00
Try an operator overload
This commit is contained in:
@@ -87,8 +87,7 @@ public:
|
||||
|
||||
/* 0x0C */ virtual void calc() override;
|
||||
/* 0x10 */ virtual bool isDone() override {
|
||||
// TODO - this matches, but maybe an operator overload?
|
||||
return mCurrent.x == mTarget.x && mCurrent.y == mTarget.y && mCurrent.z == mTarget.z;
|
||||
return mCurrent == mTarget;
|
||||
}
|
||||
/* 0x20 */ virtual void vt_0x20(const dAcBase_c *) {}
|
||||
};
|
||||
|
||||
@@ -150,6 +150,10 @@ public:
|
||||
return *this;
|
||||
}
|
||||
|
||||
bool operator==(const mAng3_c &other) const {
|
||||
return x == other.x && y == other.y && z == other.z;
|
||||
}
|
||||
|
||||
void set(const mAng3_c &other) {
|
||||
set(other.x, other.y, other.z);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user