diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-28 13:25:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-29 00:49:52 +0300 |
commit | 46696c84bad31e35e003b5c09998503119b128eb (patch) | |
tree | 7449b98a62fa7ff520d995b27511878d2605c7d4 /src/net/ea/beinghandler.cpp | |
parent | c79403e1341ac533df1771b866d1f5cee15e12b5 (diff) | |
download | manaverse-46696c84bad31e35e003b5c09998503119b128eb.tar.gz manaverse-46696c84bad31e35e003b5c09998503119b128eb.tar.bz2 manaverse-46696c84bad31e35e003b5c09998503119b128eb.tar.xz manaverse-46696c84bad31e35e003b5c09998503119b128eb.zip |
Add to replace/reorder sprites pseudo direction "died"
It allow change sprites in dead players.
Diffstat (limited to 'src/net/ea/beinghandler.cpp')
-rw-r--r-- | src/net/ea/beinghandler.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/net/ea/beinghandler.cpp b/src/net/ea/beinghandler.cpp index 5a3ca3cc7..d8fd49fe2 100644 --- a/src/net/ea/beinghandler.cpp +++ b/src/net/ea/beinghandler.cpp @@ -401,7 +401,11 @@ void BeingHandler::processBeingRemove(Net::MessageIn &msg) if (msg.readInt8() == 1) { - dstBeing->setAction(Being::DEAD); + if (dstBeing->getCurrentAction() != Being::DEAD) + { + dstBeing->setAction(Being::DEAD); + dstBeing->recalcSpritesOrder(); + } if (dstBeing->getName() == "Jack O" && killStats) killStats->jackoDead(id); } |