diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-09-02 04:29:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-09-02 04:29:53 +0300 |
commit | cfcdacfd6ed49916890a93d7565bd2a2d1f1e8f5 (patch) | |
tree | d55507a57b41485c18782431ee0ec5c42073b350 | |
parent | 9a441d3bf00ac6aafd8c3c48160112af2459fa0e (diff) | |
download | plus-cfcdacfd6ed49916890a93d7565bd2a2d1f1e8f5.tar.gz plus-cfcdacfd6ed49916890a93d7565bd2a2d1f1e8f5.tar.bz2 plus-cfcdacfd6ed49916890a93d7565bd2a2d1f1e8f5.tar.xz plus-cfcdacfd6ed49916890a93d7565bd2a2d1f1e8f5.zip |
Possible fix for random incorrect camera position.
-rw-r--r-- | src/being.cpp | 5 |
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; } |