From cfcdacfd6ed49916890a93d7565bd2a2d1f1e8f5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 2 Sep 2011 04:29:31 +0300 Subject: Possible fix for random incorrect camera position. --- src/being.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/being.cpp') 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; } -- cgit v1.2.3-60-g2f50