diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-16 16:34:42 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-16 16:34:42 +0300 |
commit | 8185a857a4d9152b3dda7f6b5649a27427010605 (patch) | |
tree | 13b06f5def1764c8061d406acd1bfa43159b39f0 /src/being/localplayer.cpp | |
parent | 64597d0d8fafff56779fc9a107196465ce073b3a (diff) | |
download | mv-8185a857a4d9152b3dda7f6b5649a27427010605.tar.gz mv-8185a857a4d9152b3dda7f6b5649a27427010605.tar.bz2 mv-8185a857a4d9152b3dda7f6b5649a27427010605.tar.xz mv-8185a857a4d9152b3dda7f6b5649a27427010605.zip |
add server feature havePlayerStatusUpdate.
Diffstat (limited to 'src/being/localplayer.cpp')
-rw-r--r-- | src/being/localplayer.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp index 237f21dc2..fd3acd4f9 100644 --- a/src/being/localplayer.cpp +++ b/src/being/localplayer.cpp @@ -68,6 +68,7 @@ #include "net/packetlimiter.h" #include "net/pethandler.h" #include "net/playerhandler.h" +#include "net/serverfeatures.h" #include "resources/iteminfo.h" #include "resources/itemslot.h" @@ -333,7 +334,9 @@ void LocalPlayer::slowLogic() weightNoticeTime = 0; } - if (serverVersion < 4 && mEnableAdvert && !mBlockAdvert + if (!Net::getServerFeatures()->havePlayerStatusUpdate() + && mEnableAdvert + && !mBlockAdvert && mAdvertTime < cur_time) { uint8_t smile = BeingFlag::SPECIAL; @@ -3222,7 +3225,7 @@ bool LocalPlayer::checAttackPermissions(const Being *const target) void LocalPlayer::updateStatus() const { - if (serverVersion >= 4 && mEnableAdvert) + if (Net::getServerFeatures()->havePlayerStatusUpdate() && mEnableAdvert) { uint8_t status = 0; if (mTradebot && shopWindow && !shopWindow->isShopEmpty()) |