summaryrefslogtreecommitdiff
path: root/src/net/tmwa/beingrecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-05-01 02:13:28 +0300
committerAndrei Karas <akaras@inbox.ru>2016-05-01 02:13:28 +0300
commit3fdeed3159bae9d9d9951a062fa7ce0c65e01cc2 (patch)
tree1fd0bd3b5816a50fd0cd9b6751b8027ce8a02001 /src/net/tmwa/beingrecv.cpp
parent60147212b9f0475ebbf1b41b20b3c56ba5180055 (diff)
downloadplus-3fdeed3159bae9d9d9951a062fa7ce0c65e01cc2.tar.gz
plus-3fdeed3159bae9d9d9951a062fa7ce0c65e01cc2.tar.bz2
plus-3fdeed3159bae9d9d9951a062fa7ce0c65e01cc2.tar.xz
plus-3fdeed3159bae9d9d9951a062fa7ce0c65e01cc2.zip
Read whole packet SMSG_BEING_IP_RESPONSE if player not present.
Diffstat (limited to 'src/net/tmwa/beingrecv.cpp')
-rw-r--r--src/net/tmwa/beingrecv.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/net/tmwa/beingrecv.cpp b/src/net/tmwa/beingrecv.cpp
index 0a6a4100e..d5f1dbd6f 100644
--- a/src/net/tmwa/beingrecv.cpp
+++ b/src/net/tmwa/beingrecv.cpp
@@ -1304,8 +1304,12 @@ void BeingRecv::processIpResponse(Net::MessageIn &msg)
Being *const dstBeing = actorManager->findBeing(
msg.readBeingId("being id"));
+ const std::string ip = ipToString(msg.readInt32("ip address"));
if (dstBeing)
- dstBeing->setIp(ipToString(msg.readInt32("ip address")));
+ dstBeing->setIp(ip);
+ else
+ DEBUGLOGSTR("invisible player?");
+
BLOCK_END("BeingRecv::processIpResponse")
}