summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
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);