diff options
author | Andrei Karas <akaras@inbox.ru> | 2019-03-20 22:14:01 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2019-03-21 01:36:40 +0300 |
commit | 0e3549dd92ac1eac1916b3f5110036ab59fe2fec (patch) | |
tree | 85011f9be2576f4daeaae9513be24d50a5dae93a /src/net/ea/beingrecv.cpp | |
parent | bd6ced98dfbe93fce5c143cdcd6fa6e8c3f4f6a8 (diff) | |
download | plus-0e3549dd92ac1eac1916b3f5110036ab59fe2fec.tar.gz plus-0e3549dd92ac1eac1916b3f5110036ab59fe2fec.tar.bz2 plus-0e3549dd92ac1eac1916b3f5110036ab59fe2fec.tar.xz plus-0e3549dd92ac1eac1916b3f5110036ab59fe2fec.zip |
Possible fix for desync in moving
Handle player stop packet always.
Check desync always if tile changed client side.
Check desync always if server move response packet received.
Removed unused configuration option.
Diffstat (limited to 'src/net/ea/beingrecv.cpp')
-rw-r--r-- | src/net/ea/beingrecv.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/net/ea/beingrecv.cpp b/src/net/ea/beingrecv.cpp index 4ac1f90eb..ed6e031b6 100644 --- a/src/net/ea/beingrecv.cpp +++ b/src/net/ea/beingrecv.cpp @@ -54,7 +54,6 @@ namespace Ea namespace BeingRecv { - bool mSync = false; BeingId mSpawnId = BeingId_zero; } // namespace BeingRecv @@ -345,7 +344,7 @@ void BeingRecv::processPlayerStop(Net::MessageIn &msg) const BeingId id = msg.readBeingId("account id"); - if (mSync || id != localPlayer->getId()) +// if (mSync || id != localPlayer->getId()) { Being *const dstBeing = actorManager->findBeing(id); if (dstBeing != nullptr) |