summaryrefslogtreecommitdiff
path: root/src/being/localplayer.cpp
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/localplayer.cpp
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/localplayer.cpp')
-rw-r--r--src/being/localplayer.cpp7
1 files changed, 3 insertions, 4 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)