diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-08-29 19:32:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-08-29 19:32:02 +0300 |
commit | e14030fd3e255cd7469cd2d63abc51b1faef52e4 (patch) | |
tree | b880a043e06826162383198e5e89b167f2e5b4d0 /src/being | |
parent | 83e5dc67b704b397d85df7d4f4cd48b6d239b875 (diff) | |
download | manaverse-e14030fd3e255cd7469cd2d63abc51b1faef52e4.tar.gz manaverse-e14030fd3e255cd7469cd2d63abc51b1faef52e4.tar.bz2 manaverse-e14030fd3e255cd7469cd2d63abc51b1faef52e4.tar.xz manaverse-e14030fd3e255cd7469cd2d63abc51b1faef52e4.zip |
Fix code style.
Diffstat (limited to 'src/being')
-rw-r--r-- | src/being/localplayer.cpp | 4 | ||||
-rw-r--r-- | src/being/localplayer.h | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp index 7c07e57cb..4ef9b7f9d 100644 --- a/src/being/localplayer.cpp +++ b/src/being/localplayer.cpp @@ -2487,7 +2487,7 @@ void LocalPlayer::setAfkMessage(std::string message) } } -void LocalPlayer::setPseudoAway(const std::string &message) const +void LocalPlayer::setPseudoAway(const std::string &message) { setAfkMessage(message); settings.pseudoAwayMode = !settings.pseudoAwayMode; @@ -3196,7 +3196,7 @@ void LocalPlayer::stopAdvert() mBlockAdvert = true; } -bool LocalPlayer::checAttackPermissions(const Being *const target) const +bool LocalPlayer::checAttackPermissions(const Being *const target) { if (!target) return false; diff --git a/src/being/localplayer.h b/src/being/localplayer.h index 71c80de8b..ed2b42b53 100644 --- a/src/being/localplayer.h +++ b/src/being/localplayer.h @@ -232,7 +232,7 @@ class LocalPlayer final : public Being, void setAway(const std::string &message) const; - void setPseudoAway(const std::string &message) const; + static void setPseudoAway(const std::string &message); void setHalfAway(const bool n) { mInactive = n; } @@ -370,8 +370,8 @@ class LocalPlayer final : public Being, void stopAdvert(); - bool checAttackPermissions(const Being *const target) - const A_WARN_UNUSED; + static bool checAttackPermissions(const Being *const target) + A_WARN_UNUSED; void updateStatus() const; |