mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-13 10:06:10 +00:00
CIceSheegoth: Add missing reference ampersands to IsClosestSheegoth()
Same behavior, but doesn't make copies of the vector and reserved_vector (the reserved vector in particular is 2056 bytes in size and this function is called in a loop, so this can have quite an impact).
This commit is contained in:
@@ -186,8 +186,8 @@ class CIceSheegoth : public CPatterned {
|
||||
void UpdateAttackPosition(CStateManager& mgr, zeus::CVector3f& attackPos);
|
||||
zeus::CVector3f GetEnergyAttractionPos(CStateManager& mgr) const;
|
||||
bool ShouldAttractProjectile(const CGameProjectile& proj, CStateManager& mgr) const;
|
||||
bool IsClosestSheegoth(CStateManager& mgr, const rstl::reserved_vector<TUniqueId, 1024> nearList,
|
||||
const zeus::CVector3f projectileOffset) const;
|
||||
bool IsClosestSheegoth(CStateManager& mgr, const rstl::reserved_vector<TUniqueId, 1024>& nearList,
|
||||
const zeus::CVector3f& projectileOffset) const;
|
||||
|
||||
public:
|
||||
DEFINE_PATTERNED(IceSheeegoth);
|
||||
|
||||
Reference in New Issue
Block a user