diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-03-04 01:39:30 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-03-04 01:39:30 +0300 |
commit | 44ef6547161dd3cd2e1bb4053bb5e8619e6dc0d0 (patch) | |
tree | 16ef6000be72c8959672d1210e89f595a55925a5 /src/being/localplayer.cpp | |
parent | b889e7fe2d2b1162bad9cf39831e1becf3d9e480 (diff) | |
download | plus-44ef6547161dd3cd2e1bb4053bb5e8619e6dc0d0.tar.gz plus-44ef6547161dd3cd2e1bb4053bb5e8619e6dc0d0.tar.bz2 plus-44ef6547161dd3cd2e1bb4053bb5e8619e6dc0d0.tar.xz plus-44ef6547161dd3cd2e1bb4053bb5e8619e6dc0d0.zip |
Add support for hightlight attribute in groups.xml
This attribute allow to highlight gm groups based on groups.xml
Diffstat (limited to 'src/being/localplayer.cpp')
-rw-r--r-- | src/being/localplayer.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp index 9f805b21a..240228068 100644 --- a/src/being/localplayer.cpp +++ b/src/being/localplayer.cpp @@ -422,19 +422,14 @@ void LocalPlayer::setGroupId(const int id) { Being::setGroupId(id); - if (id > 0) + if (mIsGM != 0) { - setGM(true); if (chatWindow != nullptr) { chatWindow->loadGMCommands(); chatWindow->showGMTab(); } } - else - { - setGM(false); - } if (statusWindow != nullptr) statusWindow->updateLevelLabel(); } |