From 243932ef169949917f17d3107e00f97886da0a14 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 15 Aug 2014 19:46:48 +0300 Subject: Fix code style. --- src/being/being.cpp | 6 ++++++ src/being/localplayer.cpp | 4 ++-- src/being/localplayer.h | 4 ++-- 3 files changed, 10 insertions(+), 4 deletions(-) (limited to 'src/being') 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; } -- cgit v1.2.3-70-g09d2