summaryrefslogtreecommitdiff
path: root/src/being
diff options
context:
space:
mode:
Diffstat (limited to 'src/being')
-rw-r--r--src/being/localplayer.cpp4
-rw-r--r--src/being/localplayer.h6
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;