diff options
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 b187d28a..5a877d85 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -500,6 +500,12 @@ Being::nextStep() setDirection(dir); + if (!mMap->getWalk(node.x / 32, node.y / 32)) + { + setAction(STAND); + return; + } + setPositionInPixels(node.x, node.y); setAction(WALK); mWalkTime += mStepTime / 10; |