diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2008-02-12 19:49:37 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2008-02-12 19:49:37 +0000 |
commit | 79dfa4db0cc7d307fe52f1959a30f117efacaa00 (patch) | |
tree | c44cd018b8f9f320fb2a1f0c8aed47a24ac14e2b /src/being.cpp | |
parent | 34e9c3e9125ef800ef47e2594cf23853deddccfb (diff) | |
download | mana-79dfa4db0cc7d307fe52f1959a30f117efacaa00.tar.gz mana-79dfa4db0cc7d307fe52f1959a30f117efacaa00.tar.bz2 mana-79dfa4db0cc7d307fe52f1959a30f117efacaa00.tar.xz mana-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.cpp | 6 |
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); |