From 4c0259fc06f9147fa1c7e55db26659d1dade0f45 Mon Sep 17 00:00:00 2001 From: Ira Rice Date: Thu, 26 Feb 2009 09:24:51 -0700 Subject: 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 --- src/net/beinghandler.cpp | 9 +++------ 1 file 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; -- cgit v1.2.3-70-g09d2