diff options
author | Ira Rice <irarice@gmail.com> | 2009-02-26 09:24:51 -0700 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-02-26 09:24:51 -0700 |
commit | 4c0259fc06f9147fa1c7e55db26659d1dade0f45 (patch) | |
tree | 978925d91cc0e9d7f543354f8946b3141fa0854b /src/net | |
parent | 0ffbbaa33f633bccf3b2a49713eb1cb117ff8a5a (diff) | |
download | mana-4c0259fc06f9147fa1c7e55db26659d1dade0f45.tar.gz mana-4c0259fc06f9147fa1c7e55db26659d1dade0f45.tar.bz2 mana-4c0259fc06f9147fa1c7e55db26659d1dade0f45.tar.xz mana-4c0259fc06f9147fa1c7e55db26659d1dade0f45.zip |
Fixed showing being deaths. I removed the wrong pointless death
animation (case 1 is NOT death, but actually idle in SMSG_PLAYER_UPDATE_1)
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/beinghandler.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/net/beinghandler.cpp b/src/net/beinghandler.cpp index bae14a05..71369031 100644 --- a/src/net/beinghandler.cpp +++ b/src/net/beinghandler.cpp @@ -209,7 +209,9 @@ void BeingHandler::handleMessage(MessageIn *msg) if (dstBeing == player_node->getTarget()) player_node->stopAttack(); - if (!(msg->readInt8() == 1)) + if (msg->readInt8() == 1) + dstBeing->setAction(Being::DEAD); + else beingManager->destroyBeing(dstBeing); break; @@ -443,11 +445,6 @@ void BeingHandler::handleMessage(MessageIn *msg) { switch (msg->readInt8()) { - case 1: - if (dstBeing->getType() != Being::NPC) - dstBeing->setAction(Being::DEAD); - break; - case 2: dstBeing->setAction(Being::SIT); break; |