summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2008-02-12 19:49:37 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2008-02-12 19:49:37 +0000
commit79dfa4db0cc7d307fe52f1959a30f117efacaa00 (patch)
treec44cd018b8f9f320fb2a1f0c8aed47a24ac14e2b /src/being.cpp
parent34e9c3e9125ef800ef47e2594cf23853deddccfb (diff)
downloadmana-client-79dfa4db0cc7d307fe52f1959a30f117efacaa00.tar.gz
mana-client-79dfa4db0cc7d307fe52f1959a30f117efacaa00.tar.bz2
mana-client-79dfa4db0cc7d307fe52f1959a30f117efacaa00.tar.xz
mana-client-79dfa4db0cc7d307fe52f1959a30f117efacaa00.zip
Made pathfinding not halt on collision destination tile, made moving around with mouse smoother. Added possibility to pass through players with key controls.
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/being.cpp b/src/being.cpp
index ad60dc2f..e76370fd 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -339,6 +339,12 @@ Being::nextStep()
setDirection(dir);
+ if (mMap->tileCollides(node.x, node.y))
+ {
+ setAction(STAND);
+ return;
+ }
+
mX = node.x;
mY = node.y;
setAction(WALK);