mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +00:00
Mark setAttackingOrSpell as const
This commit is contained in:
parent
47f574e14b
commit
c2e637d661
@ -2707,7 +2707,7 @@ bool CharacterController::isRunning() const
|
||||
mMovementState == CharState_SwimRunRight;
|
||||
}
|
||||
|
||||
void CharacterController::setAttackingOrSpell(bool attackingOrSpell)
|
||||
void CharacterController::setAttackingOrSpell(bool attackingOrSpell) const
|
||||
{
|
||||
mPtr.getClass().getCreatureStats(mPtr).setAttackingOrSpell(attackingOrSpell);
|
||||
}
|
||||
|
@ -234,8 +234,7 @@ class CharacterController : public MWRender::Animation::TextKeyListener
|
||||
std::string getWeaponAnimation(int weaponType) const;
|
||||
|
||||
bool getAttackingOrSpell() const;
|
||||
void setAttackingOrSpell(bool attackingOrSpell);
|
||||
|
||||
void setAttackingOrSpell(bool attackingOrSpell) const;
|
||||
|
||||
public:
|
||||
CharacterController(const MWWorld::Ptr &ptr, MWRender::Animation *anim);
|
||||
|
Loading…
x
Reference in New Issue
Block a user