summaryrefslogtreecommitdiff
path: root/src/being
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-23 12:00:53 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-23 12:00:53 +0300
commit447d96259ec1b6be3fddad3e5b61b3711030ea18 (patch)
tree9a1b324ea7b50acb10eba4de5b404a724a94cd49 /src/being
parent648c85816ca9398dd9c672d5d4230bef030e0274 (diff)
downloadmv-447d96259ec1b6be3fddad3e5b61b3711030ea18.tar.gz
mv-447d96259ec1b6be3fddad3e5b61b3711030ea18.tar.bz2
mv-447d96259ec1b6be3fddad3e5b61b3711030ea18.tar.xz
mv-447d96259ec1b6be3fddad3e5b61b3711030ea18.zip
Move pseudo away variable into settings.
Diffstat (limited to 'src/being')
-rw-r--r--src/being/localplayer.cpp7
-rw-r--r--src/being/localplayer.h4
2 files changed, 3 insertions, 8 deletions
diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp
index 11102a67f..ee7ced8c5 100644
--- a/src/being/localplayer.cpp
+++ b/src/being/localplayer.cpp
@@ -174,7 +174,6 @@ LocalPlayer::LocalPlayer(const int id, const uint16_t subtype) :
mKeepAttacking(false),
mPathSetByMouse(false),
mWaitPing(false),
- mPseudoAwayMode(false),
mShowNavigePath(false)
{
logger->log1("LocalPlayer::LocalPlayer");
@@ -342,7 +341,7 @@ void LocalPlayer::slowLogic()
if (mTradebot && shopWindow && !shopWindow->isShopEmpty())
smile |= BeingFlag::SHOP;
- if (settings.awayMode || mPseudoAwayMode)
+ if (settings.awayMode || settings.pseudoAwayMode)
smile |= BeingFlag::AWAY;
if (mInactive)
@@ -2527,7 +2526,7 @@ void LocalPlayer::setAfkMessage(std::string message)
void LocalPlayer::setPseudoAway(const std::string &message)
{
setAfkMessage(message);
- mPseudoAwayMode = !mPseudoAwayMode;
+ settings.pseudoAwayMode = !settings.pseudoAwayMode;
}
void LocalPlayer::afkRespond(ChatTab *const tab, const std::string &nick)
@@ -3326,7 +3325,7 @@ void LocalPlayer::updateStatus() const
if (mTradebot && shopWindow && !shopWindow->isShopEmpty())
status |= BeingFlag::SHOP;
- if (settings.awayMode || mPseudoAwayMode)
+ if (settings.awayMode || settings.pseudoAwayMode)
status |= BeingFlag::AWAY;
if (mInactive)
diff --git a/src/being/localplayer.h b/src/being/localplayer.h
index 96e6efb88..e26cb7843 100644
--- a/src/being/localplayer.h
+++ b/src/being/localplayer.h
@@ -236,9 +236,6 @@ class LocalPlayer final : public Being,
void setPseudoAway(const std::string &message);
- bool getPseudoAway() const A_WARN_UNUSED
- { return mPseudoAwayMode; }
-
void setHalfAway(const bool n)
{ mInactive = n; }
@@ -534,7 +531,6 @@ class LocalPlayer final : public Being,
// Tells if the path was set using mouse
bool mPathSetByMouse;
bool mWaitPing;
- bool mPseudoAwayMode;
bool mShowNavigePath;
};