From 0ebebb1176446512d502794ee25b0b07beab7051 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Fri, 17 Mar 2006 20:49:12 +0000 Subject: Fixes animations when brandon turns inivisible/visible. svn-id: r21348 --- engines/kyra/animator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/kyra') diff --git a/engines/kyra/animator.cpp b/engines/kyra/animator.cpp index 8d7ac5d34c..e28860a435 100644 --- a/engines/kyra/animator.cpp +++ b/engines/kyra/animator.cpp @@ -339,7 +339,7 @@ void ScreenAnimator::prepDrawAllObjects() { if (!_vm->_scaleMode) { if (flagUnk3 & 0x100) { _screen->drawShape(drawPage, curObject->sceneAnimPtr, xpos, ypos, 2, curObject->flags | flagUnk1 | 0x100, (uint8*)_vm->_brandonPoisonFlagsGFX, int(1), drawLayer); - } else if (flagUnk3 & 0x4000) { + } else if (flagUnk2 & 0x4000) { _screen->drawShape(drawPage, curObject->sceneAnimPtr, xpos, ypos, 2, curObject->flags | flagUnk1 | 0x4000, int(_vm->_brandonInvFlag), drawLayer); } else { _screen->drawShape(drawPage, curObject->sceneAnimPtr, xpos, ypos, 2, curObject->flags | flagUnk1, drawLayer); @@ -347,7 +347,7 @@ void ScreenAnimator::prepDrawAllObjects() { } else { if (flagUnk3 & 0x100) { _screen->drawShape(drawPage, curObject->sceneAnimPtr, xpos, ypos, 2, curObject->flags | flagUnk1 | 0x104, (uint8*)_vm->_brandonPoisonFlagsGFX, int(1), drawLayer, _brandonScaleX, _brandonScaleY); - } else if (flagUnk3 & 0x4000) { + } else if (flagUnk2 & 0x4000) { _screen->drawShape(drawPage, curObject->sceneAnimPtr, xpos, ypos, 2, curObject->flags | flagUnk1 | 0x4004, int(_vm->_brandonInvFlag), drawLayer, _brandonScaleX, _brandonScaleY); } else { _screen->drawShape(drawPage, curObject->sceneAnimPtr, xpos, ypos, 2, curObject->flags | flagUnk1 | 0x4, drawLayer, _brandonScaleX, _brandonScaleY); -- cgit v1.2.3