summaryrefslogtreecommitdiff
path: root/src/being/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-05-18 23:57:51 +0300
committerAndrei Karas <akaras@inbox.ru>2016-05-18 23:57:51 +0300
commitd7de4533368a36b77dbc2dbe21269690d8dc5ee5 (patch)
tree66e83823b788015013834dcc7520b0b6bdba68b5 /src/being/being.cpp
parentdc0102e6eb4ca9a202e190e6ee84b7141d4e0fe1 (diff)
downloadplus-d7de4533368a36b77dbc2dbe21269690d8dc5ee5.tar.gz
plus-d7de4533368a36b77dbc2dbe21269690d8dc5ee5.tar.bz2
plus-d7de4533368a36b77dbc2dbe21269690d8dc5ee5.tar.xz
plus-d7de4533368a36b77dbc2dbe21269690d8dc5ee5.zip
Fix random one tile desync in SMSG_BEING_MOVE3 packet.
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r--src/being/being.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index d7b00e1c6..f020de3da 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -214,6 +214,8 @@ Being::Being(const BeingId id,
#endif
mX(0),
mY(0),
+ mCachedX(0),
+ mCachedY(0),
mSortOffsetY(0),
mPixelOffsetY(0),
mFixedOffsetY(0),
@@ -528,9 +530,9 @@ void Being::setPixelPositionF(const Vector &restrict pos) restrict2
}
}
-void Being::setDestination(const int dstX, const int dstY) restrict2
+void Being::setDestination(const int dstX,
+ const int dstY) restrict2
{
- // We can't calculate anything without a map anyway.
if (!mMap)
return;