2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 15:07:41 +00:00

CModVectorElement: Eliminate variable shadowing

Prevents "a" from clashing with a local variable.
This commit is contained in:
Lioncash
2020-04-23 07:16:46 -04:00
parent 9fa689a806
commit 31cf98646b
2 changed files with 11 additions and 13 deletions

View File

@@ -78,14 +78,14 @@ class CMVEBounce : public CModVectorElement {
std::unique_ptr<CVectorElement> x8_planeNormal;
std::unique_ptr<CRealElement> xc_friction;
std::unique_ptr<CRealElement> x10_restitution;
bool x14_planePrecomputed;
bool x14_planePrecomputed = false;
bool x15_dieOnPenetrate;
zeus::CVector3f x18_planeValidatedNormal;
float x24_planeD;
float x24_planeD = 0.0f;
public:
CMVEBounce(std::unique_ptr<CVectorElement>&& a, std::unique_ptr<CVectorElement>&& b,
std::unique_ptr<CRealElement>&& c, std::unique_ptr<CRealElement>&& d, bool e);
CMVEBounce(std::unique_ptr<CVectorElement>&& planePoint, std::unique_ptr<CVectorElement>&& planeNormal,
std::unique_ptr<CRealElement>&& friction, std::unique_ptr<CRealElement>&& restitution, bool e);
bool GetValue(int frame, zeus::CVector3f& pVel, zeus::CVector3f& pPos) const override;
};