summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-05-03 11:31:39 +0200
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-05-03 11:37:00 +0200
commit91242cdfe50922e7258a04743bd940956c0453da (patch)
tree85e66499c7a12920ec2309142e839abd74bee53b /src/net
parent1bc515864c9f317562b3edb0267a3cc4db5737ad (diff)
downloadmana-91242cdfe50922e7258a04743bd940956c0453da.tar.gz
mana-91242cdfe50922e7258a04743bd940956c0453da.tar.bz2
mana-91242cdfe50922e7258a04743bd940956c0453da.tar.xz
mana-91242cdfe50922e7258a04743bd940956c0453da.zip
Moved mIsGM from Being to Player and made isGM() const
Diffstat (limited to 'src/net')
-rw-r--r--src/net/ea/beinghandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/ea/beinghandler.cpp b/src/net/ea/beinghandler.cpp
index 1f5f79c7..29ed733a 100644
--- a/src/net/ea/beinghandler.cpp
+++ b/src/net/ea/beinghandler.cpp
@@ -503,8 +503,8 @@ void BeingHandler::handleMessage(MessageIn &msg)
}
gmstatus = msg.readInt16();
- if (gmstatus & 0x80)
- dstBeing->setGM();
+ if ((gmstatus & 0x80) && dstBeing->getType() == Being::PLAYER)
+ static_cast<Player*>(dstBeing)->setGM();
if (msg.getId() == SMSG_PLAYER_UPDATE_1)
{