CElitePirate: Mark functions const where applicable

These don't modify instance state, so we can mark these as const.
This commit is contained in:
Lioncash 2020-04-02 00:37:22 -04:00
parent b3753c6a92
commit b562905266
1 changed files with 2 additions and 2 deletions

View File

@ -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;