diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-05-01 02:13:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-05-01 02:13:28 +0300 |
commit | 3fdeed3159bae9d9d9951a062fa7ce0c65e01cc2 (patch) | |
tree | 1fd0bd3b5816a50fd0cd9b6751b8027ce8a02001 | |
parent | 60147212b9f0475ebbf1b41b20b3c56ba5180055 (diff) | |
download | mv-3fdeed3159bae9d9d9951a062fa7ce0c65e01cc2.tar.gz mv-3fdeed3159bae9d9d9951a062fa7ce0c65e01cc2.tar.bz2 mv-3fdeed3159bae9d9d9951a062fa7ce0c65e01cc2.tar.xz mv-3fdeed3159bae9d9d9951a062fa7ce0c65e01cc2.zip |
Read whole packet SMSG_BEING_IP_RESPONSE if player not present.
-rw-r--r-- | src/net/tmwa/beingrecv.cpp | 6 |
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") } |