diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-07-12 18:34:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-07-12 19:20:20 +0300 |
commit | 64d81679e4fbaba26cd538669a394070e9aa7c44 (patch) | |
tree | 2745d7a1b8e0effbc6a9e8625c419f104e3775b2 /src/being/localplayer.cpp | |
parent | 42564aea17d47d767979f2708ffa2f8a3a25edf9 (diff) | |
download | mv-64d81679e4fbaba26cd538669a394070e9aa7c44.tar.gz mv-64d81679e4fbaba26cd538669a394070e9aa7c44.tar.bz2 mv-64d81679e4fbaba26cd538669a394070e9aa7c44.tar.xz mv-64d81679e4fbaba26cd538669a394070e9aa7c44.zip |
Add packet SMSG_PLAYER_ATTRS 0x0b25.
It allow set local player attributes from server.
For now it send real group id.
Diffstat (limited to 'src/being/localplayer.cpp')
-rw-r--r-- | src/being/localplayer.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp index 3ba0ffc70..a9b76a10e 100644 --- a/src/being/localplayer.cpp +++ b/src/being/localplayer.cpp @@ -423,14 +423,18 @@ void LocalPlayer::setGMLevel(const int level) if (level > 0) { setGM(true); - if (statusWindow != nullptr) - statusWindow->updateLevelLabel(); if (chatWindow != nullptr) { chatWindow->loadGMCommands(); chatWindow->showGMTab(); } } + else + { + setGM(false); + } + if (statusWindow != nullptr) + statusWindow->updateLevelLabel(); } void LocalPlayer::nextTile(unsigned char dir A_UNUSED = 0) |