diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-08-15 19:46:48 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-08-15 23:35:48 +0300 |
commit | 243932ef169949917f17d3107e00f97886da0a14 (patch) | |
tree | 8f11d6e99b250ff480a32b04ea3bbb0ce9bc7f14 /src/being | |
parent | 3658d5a5564db6f0854ec9378c485aef8acc8992 (diff) | |
download | plus-243932ef169949917f17d3107e00f97886da0a14.tar.gz plus-243932ef169949917f17d3107e00f97886da0a14.tar.bz2 plus-243932ef169949917f17d3107e00f97886da0a14.tar.xz plus-243932ef169949917f17d3107e00f97886da0a14.zip |
Fix code style.
Diffstat (limited to 'src/being')
-rw-r--r-- | src/being/being.cpp | 6 | ||||
-rw-r--r-- | src/being/localplayer.cpp | 4 | ||||
-rw-r--r-- | src/being/localplayer.h | 4 |
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; } |