summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/being.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/being.cpp b/src/being.cpp
index 6d35f1df0..b4c97f15d 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -1453,6 +1453,11 @@ int Being::getOffset(char pos, char neg) const
if (mDirection & pos)
offset = -offset;
+ if (offset > 32)
+ offset = 32;
+ if (offset < -32)
+ offset = -32;
+
return offset;
}