diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-02-19 01:45:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-02-19 01:45:04 +0300 |
commit | 93eec460598391093691eaa3d46c6e93538581fe (patch) | |
tree | 53f2d636e07f5d6294c1d66ab9dba418526091d8 /src | |
parent | 52ea1d83bf059122af808064ca8b99e9c846874f (diff) | |
download | plus-93eec460598391093691eaa3d46c6e93538581fe.tar.gz plus-93eec460598391093691eaa3d46c6e93538581fe.tar.bz2 plus-93eec460598391093691eaa3d46c6e93538581fe.tar.xz plus-93eec460598391093691eaa3d46c6e93538581fe.zip |
Allow set any gm level for tmwa.
Diffstat (limited to 'src')
-rw-r--r-- | src/net/tmwa/beingrecv.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net/tmwa/beingrecv.cpp b/src/net/tmwa/beingrecv.cpp index 65170e2a1..c47b3e2c7 100644 --- a/src/net/tmwa/beingrecv.cpp +++ b/src/net/tmwa/beingrecv.cpp @@ -66,20 +66,20 @@ static void setGm(Being *const dstBeing, { if (dstBeing != localPlayer) { - if ((gmstatus & 0x80) != 0) + if (gmstatus == 0x80) { dstBeing->setGroupId(paths.getIntValue("gmDefaultLevel")); dstBeing->setGM(true); } else { - dstBeing->setGroupId(0); - dstBeing->setGM(false); + dstBeing->setGroupId(gmstatus); + dstBeing->setGM(gmstatus != 0); } } else { - if ((gmstatus & 0x80) != 0) + if (gmstatus != 0) dstBeing->setGM(true); else dstBeing->setGM(false); |