summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-09-02 04:29:31 +0300
committerAndrei Karas <akaras@inbox.ru>2011-09-02 04:29:53 +0300
commitcfcdacfd6ed49916890a93d7565bd2a2d1f1e8f5 (patch)
treed55507a57b41485c18782431ee0ec5c42073b350 /src/being.cpp
parent9a441d3bf00ac6aafd8c3c48160112af2459fa0e (diff)
downloadmv-cfcdacfd6ed49916890a93d7565bd2a2d1f1e8f5.tar.gz
mv-cfcdacfd6ed49916890a93d7565bd2a2d1f1e8f5.tar.bz2
mv-cfcdacfd6ed49916890a93d7565bd2a2d1f1e8f5.tar.xz
mv-cfcdacfd6ed49916890a93d7565bd2a2d1f1e8f5.zip
Possible fix for random incorrect camera position.
Diffstat (limited to 'src/being.cpp')
-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;
}