From 46696c84bad31e35e003b5c09998503119b128eb Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 28 Aug 2012 13:25:35 +0300 Subject: Add to replace/reorder sprites pseudo direction "died" It allow change sprites in dead players. --- src/net/eathena/beinghandler.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/net/eathena/beinghandler.cpp') diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp index 1af410632..cfe90f198 100644 --- a/src/net/eathena/beinghandler.cpp +++ b/src/net/eathena/beinghandler.cpp @@ -586,7 +586,11 @@ void BeingHandler::processPlayerMoveUpdate(Net::MessageIn &msg, int msgType) break; case 1: - dstBeing->setAction(Being::DEAD); + if (dstBeing->getCurrentAction() != Being::DEAD) + { + dstBeing->setAction(Being::DEAD); + dstBeing->recalcSpritesOrder(); + } break; case 2: -- cgit v1.2.3-70-g09d2