mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-03 18:45:34 +00:00
Mark setAttackingOrSpell as const
This commit is contained in:
parent
47f574e14b
commit
c2e637d661
2 changed files with 2 additions and 3 deletions
|
@ -2707,7 +2707,7 @@ bool CharacterController::isRunning() const
|
||||||
mMovementState == CharState_SwimRunRight;
|
mMovementState == CharState_SwimRunRight;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CharacterController::setAttackingOrSpell(bool attackingOrSpell)
|
void CharacterController::setAttackingOrSpell(bool attackingOrSpell) const
|
||||||
{
|
{
|
||||||
mPtr.getClass().getCreatureStats(mPtr).setAttackingOrSpell(attackingOrSpell);
|
mPtr.getClass().getCreatureStats(mPtr).setAttackingOrSpell(attackingOrSpell);
|
||||||
}
|
}
|
||||||
|
|
|
@ -234,8 +234,7 @@ class CharacterController : public MWRender::Animation::TextKeyListener
|
||||||
std::string getWeaponAnimation(int weaponType) const;
|
std::string getWeaponAnimation(int weaponType) const;
|
||||||
|
|
||||||
bool getAttackingOrSpell() const;
|
bool getAttackingOrSpell() const;
|
||||||
void setAttackingOrSpell(bool attackingOrSpell);
|
void setAttackingOrSpell(bool attackingOrSpell) const;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CharacterController(const MWWorld::Ptr &ptr, MWRender::Animation *anim);
|
CharacterController(const MWWorld::Ptr &ptr, MWRender::Animation *anim);
|
||||||
|
|
Loading…
Reference in a new issue