summaryrefslogtreecommitdiff
path: root/src/being
diff options
context:
space:
mode:
Diffstat (limited to 'src/being')
-rw-r--r--src/being/being.cpp6
-rw-r--r--src/being/localplayer.cpp4
-rw-r--r--src/being/localplayer.h4
3 files changed, 10 insertions, 4 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index a47738868..8baab8a44 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -2911,6 +2911,12 @@ std::string Being::loadComment(const std::string &name,
case ActorType::NPC:
str = settings.npcsDir;
break;
+ case ActorType::UNKNOWN:
+ case ActorType::MONSTER:
+ case ActorType::FLOOR_ITEM:
+ case ActorType::PORTAL:
+ case ActorType::PET:
+ case ActorType::AVATAR:
default:
return "";
}
diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp
index bc1cf5bd5..7c07e57cb 100644
--- a/src/being/localplayer.cpp
+++ b/src/being/localplayer.cpp
@@ -2463,7 +2463,7 @@ void LocalPlayer::tryPingRequest()
}
-void LocalPlayer::setAway(const std::string &message)
+void LocalPlayer::setAway(const std::string &message) const
{
setAfkMessage(message);
GameModifiers::changeAwayMode();
@@ -2487,7 +2487,7 @@ void LocalPlayer::setAfkMessage(std::string message)
}
}
-void LocalPlayer::setPseudoAway(const std::string &message)
+void LocalPlayer::setPseudoAway(const std::string &message) const
{
setAfkMessage(message);
settings.pseudoAwayMode = !settings.pseudoAwayMode;
diff --git a/src/being/localplayer.h b/src/being/localplayer.h
index e6b7a99d2..71c80de8b 100644
--- a/src/being/localplayer.h
+++ b/src/being/localplayer.h
@@ -230,9 +230,9 @@ class LocalPlayer final : public Being,
void pingResponse();
- void setAway(const std::string &message);
+ void setAway(const std::string &message) const;
- void setPseudoAway(const std::string &message);
+ void setPseudoAway(const std::string &message) const;
void setHalfAway(const bool n)
{ mInactive = n; }