summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-06-24 23:53:51 +0300
committerAndrei Karas <akaras@inbox.ru>2012-06-24 23:53:51 +0300
commit72168639865fb75a4c216b1058dc8412d4c81277 (patch)
tree876e745fe1b5924073faedd53d28a68a83e4593a /src/localplayer.cpp
parentf9feb8f1fd4e2dc56218aba40ef94962fa866f84 (diff)
downloadmanaplus-72168639865fb75a4c216b1058dc8412d4c81277.tar.gz
manaplus-72168639865fb75a4c216b1058dc8412d4c81277.tar.bz2
manaplus-72168639865fb75a4c216b1058dc8412d4c81277.tar.xz
manaplus-72168639865fb75a4c216b1058dc8412d4c81277.zip
Add autodetection walkable tiles in maps without client data.
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index 69e2572e1..f204164ee 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -4055,6 +4055,8 @@ void LocalPlayer::setRealPos(int x, int y)
mCrossX = x;
mCrossY = y;
}
+ if (mMap && mMap->isCustom())
+ mMap->setWalk(x, y, true);
}
void LocalPlayer::fixAttackTarget()
{