diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-11-25 18:18:57 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-11-25 18:18:57 +0300 |
commit | e29c49d5f84544ef8178b7240b30485bfaf9ebce (patch) | |
tree | abba3ad42514cd14adc988ff37012c4361f2727e /src/net/ea | |
parent | 488428c6dba3d1e82b017bfb3b08ba85ced82be2 (diff) | |
download | manaplus-e29c49d5f84544ef8178b7240b30485bfaf9ebce.tar.gz manaplus-e29c49d5f84544ef8178b7240b30485bfaf9ebce.tar.bz2 manaplus-e29c49d5f84544ef8178b7240b30485bfaf9ebce.tar.xz manaplus-e29c49d5f84544ef8178b7240b30485bfaf9ebce.zip |
prevent update some sprites from move packets and some other.
Diffstat (limited to 'src/net/ea')
-rw-r--r-- | src/net/ea/beinghandler.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/net/ea/beinghandler.cpp b/src/net/ea/beinghandler.cpp index daef49b42..0a864bbac 100644 --- a/src/net/ea/beinghandler.cpp +++ b/src/net/ea/beinghandler.cpp @@ -110,7 +110,7 @@ void BeingHandler::setSprite(Being *const being, const unsigned int slot, { if (!being) return; - being->setSprite(slot, id, color, colorId, isWeapon, isTempSprite); + being->updateSprite(slot, id, color, colorId, isWeapon, isTempSprite); } void BeingHandler::processBeingVisibleOrMove(Net::MessageIn &msg, @@ -255,10 +255,9 @@ void BeingHandler::processBeingVisibleOrMove(Net::MessageIn &msg, } uint8_t gender = msg.readInt8(); - // reserving bits for future usage - if (!disguiseId && dstBeing->getType() == ActorSprite::PLAYER) { + // reserving bits for future usage gender &= 3; dstBeing->setGender(Being::intToGender(gender)); // Set these after the gender, as the sprites may be gender-specific |