summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-02-19 01:45:04 +0300
committerAndrei Karas <akaras@inbox.ru>2018-02-19 01:45:04 +0300
commit93eec460598391093691eaa3d46c6e93538581fe (patch)
tree53f2d636e07f5d6294c1d66ab9dba418526091d8
parent52ea1d83bf059122af808064ca8b99e9c846874f (diff)
downloadmv-93eec460598391093691eaa3d46c6e93538581fe.tar.gz
mv-93eec460598391093691eaa3d46c6e93538581fe.tar.bz2
mv-93eec460598391093691eaa3d46c6e93538581fe.tar.xz
mv-93eec460598391093691eaa3d46c6e93538581fe.zip
Allow set any gm level for tmwa.
-rw-r--r--src/net/tmwa/beingrecv.cpp8
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);