From b562905266c159ea8fd8a5a33da1e77762933994 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 2 Apr 2020 00:37:22 -0400 Subject: [PATCH] CElitePirate: Mark functions const where applicable These don't modify instance state, so we can mark these as const. --- Runtime/MP1/World/CElitePirate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Runtime/MP1/World/CElitePirate.cpp b/Runtime/MP1/World/CElitePirate.cpp index 22ef8533f..cf0e74303 100644 --- a/Runtime/MP1/World/CElitePirate.cpp +++ b/Runtime/MP1/World/CElitePirate.cpp @@ -898,7 +898,7 @@ void CElitePirate::SetupCollisionActorInfo(CStateManager& mgr) { } bool CElitePirate::IsArmClawCollider(std::string_view name, std::string_view locator, const SJointInfo* info, - size_t infoCount) { + size_t infoCount) const { if (name == locator) { return true; } @@ -1080,7 +1080,7 @@ void CElitePirate::UpdateAbsorbBodyState(CStateManager& mgr, float dt) { x7c4_absorbUpdateTimer = 0.f; } -bool CElitePirate::IsAttractingEnergy() { +bool CElitePirate::IsAttractingEnergy() const { if (x450_bodyController->GetLocomotionType() == pas::ELocomotionType::Crouch) { const auto state = x450_bodyController->GetCurrentStateId(); return state == pas::EAnimationState::Locomotion || state == pas::EAnimationState::Turn;