From 93eec460598391093691eaa3d46c6e93538581fe Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 19 Feb 2018 01:45:04 +0300 Subject: Allow set any gm level for tmwa. --- src/net/tmwa/beingrecv.cpp | 8 ++++---- 1 file 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); -- cgit v1.2.3-70-g09d2