aboutsummaryrefslogtreecommitdiff
path: root/sky/logic.cpp
diff options
context:
space:
mode:
authorRobert Göffringmann2003-06-30 16:59:41 +0000
committerRobert Göffringmann2003-06-30 16:59:41 +0000
commitb421c9fde992191f61f324e9741875e3667a7a87 (patch)
tree9f53ca3fa4ab9b44d480abb7720e1760ac020d03 /sky/logic.cpp
parent1f0c925c2b953c2832f478307ece40f9eb50058c (diff)
downloadscummvm-rg350-b421c9fde992191f61f324e9741875e3667a7a87.tar.gz
scummvm-rg350-b421c9fde992191f61f324e9741875e3667a7a87.tar.bz2
scummvm-rg350-b421c9fde992191f61f324e9741875e3667a7a87.zip
finally fixed this stupid animation bug
svn-id: r8675
Diffstat (limited to 'sky/logic.cpp')
-rw-r--r--sky/logic.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/sky/logic.cpp b/sky/logic.cpp
index efb1dc7f23..c18ca5b6ec 100644
--- a/sky/logic.cpp
+++ b/sky/logic.cpp
@@ -697,7 +697,7 @@ bool SkyLogic::collide(Compact *cpt) {
x -= m1->colOffset; // compensate for inner x offsets
x += m2->colOffset;
- if ((x + m2->colWidth) >= _compact->xcood) // their rightmoast
+ if ((x + m2->colWidth) < _compact->xcood) // their rightmoast
return false;
x -= m1->colWidth; // our left, their right
@@ -1280,6 +1280,7 @@ bool SkyLogic::fnCacheFast(uint32 a, uint32 b, uint32 c) {
bool SkyLogic::fnDrawScreen(uint32 a, uint32 b, uint32 c) {
debug(5, "Call: fnDrawScreen(%X, %X)\n",a,b);
+ SkyState::_systemVars.currentPalette = a;
_skyScreen->fnDrawScreen(a, b);
return true;
}