summaryrefslogtreecommitdiff
path: root/src/net/tmwa
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-28 13:25:35 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-29 00:49:52 +0300
commit46696c84bad31e35e003b5c09998503119b128eb (patch)
tree7449b98a62fa7ff520d995b27511878d2605c7d4 /src/net/tmwa
parentc79403e1341ac533df1771b866d1f5cee15e12b5 (diff)
downloadplus-46696c84bad31e35e003b5c09998503119b128eb.tar.gz
plus-46696c84bad31e35e003b5c09998503119b128eb.tar.bz2
plus-46696c84bad31e35e003b5c09998503119b128eb.tar.xz
plus-46696c84bad31e35e003b5c09998503119b128eb.zip
Add to replace/reorder sprites pseudo direction "died"
It allow change sprites in dead players.
Diffstat (limited to 'src/net/tmwa')
-rw-r--r--src/net/tmwa/beinghandler.cpp6
1 files changed, 5 insertions, 1 deletions
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: