summaryrefslogtreecommitdiff
path: root/src/net/ea
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-04-30 19:53:09 +0300
committerAndrei Karas <akaras@inbox.ru>2014-04-30 19:53:09 +0300
commit237449794444d60ecc4a669d78becac5372da723 (patch)
tree694f439d43e303065220df02ec5a1df9ea5b57fe /src/net/ea
parent2c13c60e916768fe09bcfff1d0b568a4c5397a99 (diff)
downloadplus-237449794444d60ecc4a669d78becac5372da723.tar.gz
plus-237449794444d60ecc4a669d78becac5372da723.tar.bz2
plus-237449794444d60ecc4a669d78becac5372da723.tar.xz
plus-237449794444d60ecc4a669d78becac5372da723.zip
Fix code style in net.
Diffstat (limited to 'src/net/ea')
-rw-r--r--src/net/ea/beinghandler.cpp17
1 files changed, 3 insertions, 14 deletions
diff --git a/src/net/ea/beinghandler.cpp b/src/net/ea/beinghandler.cpp
index a5cc7cb75..bc98b9be6 100644
--- a/src/net/ea/beinghandler.cpp
+++ b/src/net/ea/beinghandler.cpp
@@ -194,7 +194,7 @@ void BeingHandler::processBeingVisibleOrMove(Net::MessageIn &msg,
speed = 150;
const int hairStyle = msg.readInt8();
- const int look = msg.readInt8();
+ const uint8_t look = msg.readInt8();
dstBeing->setSubtype(job, look);
if (dstBeing->getType() == ActorSprite::MONSTER && player_node)
player_node->checkNewName(dstBeing);
@@ -678,7 +678,8 @@ void BeingHandler::processBeingChangeDirection(Net::MessageIn &msg) const
msg.readInt16(); // unused
- const unsigned char dir = msg.readInt8() & 0x0f;
+ const unsigned char dir = static_cast<unsigned char>(
+ msg.readInt8() & 0x0f);
dstBeing->setDirection(dir);
if (player_node)
player_node->imitateDirection(dstBeing, dir);
@@ -689,18 +690,6 @@ void BeingHandler::processPlayerStop(Net::MessageIn &msg) const
if (!actorManager || !player_node)
return;
- /*
- * Instruction from server to stop walking at x, y.
- *
- * Some people like having this enabled. Others absolutely
- * despise it. So I'm setting to so that it only affects the
- * local player if the person has set a key "EnableSync" to "1"
- * in their config.xml file.
- *
- * This packet will be honored for all other beings, regardless
- * of the config setting.
- */
-
const int id = msg.readInt32();
if (mSync || id != player_node->getId())