summaryrefslogtreecommitdiff
path: root/src/net/ea/beinghandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-05 23:24:04 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-06 01:18:58 +0300
commit6207b391b9f7d58148572fc2e58a858d993ca525 (patch)
tree82703b59fd83d1773712c8fa9951ccf5253da114 /src/net/ea/beinghandler.cpp
parente0d490b2313976562135f91bf7e723825871b3d4 (diff)
downloadmanaplus-6207b391b9f7d58148572fc2e58a858d993ca525.tar.gz
manaplus-6207b391b9f7d58148572fc2e58a858d993ca525.tar.bz2
manaplus-6207b391b9f7d58148572fc2e58a858d993ca525.tar.xz
manaplus-6207b391b9f7d58148572fc2e58a858d993ca525.zip
Improve reading in processPlayerStop.
Diffstat (limited to 'src/net/ea/beinghandler.cpp')
-rw-r--r--src/net/ea/beinghandler.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/net/ea/beinghandler.cpp b/src/net/ea/beinghandler.cpp
index e609cff21..d43d5dc50 100644
--- a/src/net/ea/beinghandler.cpp
+++ b/src/net/ea/beinghandler.cpp
@@ -493,8 +493,12 @@ void BeingHandler::processPlayerStop(Net::MessageIn &msg) const
dstBeing->setTileCoords(x, y);
if (dstBeing->getCurrentAction() == BeingAction::MOVE)
dstBeing->setAction(BeingAction::STAND, 0);
+ BLOCK_END("BeingHandler::processPlayerStop")
+ return;
}
}
+ msg.readInt16("x");
+ msg.readInt16("y");
BLOCK_END("BeingHandler::processPlayerStop")
}