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/tmwa/beinghandler.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/net/tmwa/beinghandler.cpp') diff --git a/src/net/tmwa/beinghandler.cpp b/src/net/tmwa/beinghandler.cpp index 9a2827ee5..a4ab0f48b 100644 --- a/src/net/tmwa/beinghandler.cpp +++ b/src/net/tmwa/beinghandler.cpp @@ -600,7 +600,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