mirror of https://github.com/AxioDL/metaforce.git
CIceSheegoth: Mark IsMouthCollider() as a const member function
This doesn't modify internal member state, so we can mark this as const.
This commit is contained in:
parent
3352f0e812
commit
5f899b6c6c
|
@ -148,8 +148,8 @@ class CIceSheegoth : public CPatterned {
|
|||
bool xb29_29_scanned : 1 = false;
|
||||
|
||||
void UpdateTouchBounds();
|
||||
bool IsMouthCollider(TUniqueId uid) { return xaf8_mouthCollider == uid; }
|
||||
bool IsGillCollider(const CEntity* ent) const {
|
||||
[[nodiscard]] bool IsMouthCollider(TUniqueId uid) const { return xaf8_mouthCollider == uid; }
|
||||
[[nodiscard]] bool IsGillCollider(const CEntity* ent) const {
|
||||
return std::find_if(xafc_gillColliders.cbegin(), xafc_gillColliders.cend(),
|
||||
[&ent](TUniqueId uid) { return uid == ent->GetUniqueId(); }) != xafc_gillColliders.cend();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue