From 2cec902479ba77dc411f42be2ec51e3a9795a340 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Wed, 3 Jun 2015 18:37:54 -0400 Subject: SHERLOCK: Fix issues with drawAllShapes --- engines/sherlock/tattoo/tattoo_scene.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'engines/sherlock/tattoo') diff --git a/engines/sherlock/tattoo/tattoo_scene.cpp b/engines/sherlock/tattoo/tattoo_scene.cpp index 12922b2245..9569b4c3b4 100644 --- a/engines/sherlock/tattoo/tattoo_scene.cpp +++ b/engines/sherlock/tattoo/tattoo_scene.cpp @@ -96,14 +96,13 @@ void TattooScene::drawAllShapes() { } // Queue drawing the animation if it is NORMAL and can fall in front of, or behind the people - if (_activeCAnim._imageFrame != nullptr && (_activeCAnim._zPlacement == NORMAL_BEHIND) || _activeCAnim._zPlacement == NORMAL_FORWARD) { + if (_activeCAnim._imageFrame != nullptr && (_activeCAnim._zPlacement == NORMAL_BEHIND || _activeCAnim._zPlacement == NORMAL_FORWARD)) { if (_activeCAnim._scaleVal == 256) - if (_activeCAnim._scaleVal == 256) - shapeList.push_back(ShapeEntry(_activeCAnim._position.y + _activeCAnim._imageFrame->_offset.y + - _activeCAnim._imageFrame->_height)); - else - shapeList.push_back(ShapeEntry(_activeCAnim._position.y + _activeCAnim._imageFrame->sDrawYOffset(_activeCAnim._scaleVal) + - _activeCAnim._imageFrame->sDrawYSize(_activeCAnim._scaleVal))); + shapeList.push_back(ShapeEntry(_activeCAnim._position.y + _activeCAnim._imageFrame->_offset.y + + _activeCAnim._imageFrame->_height)); + else + shapeList.push_back(ShapeEntry(_activeCAnim._position.y + _activeCAnim._imageFrame->sDrawYOffset(_activeCAnim._scaleVal) + + _activeCAnim._imageFrame->sDrawYSize(_activeCAnim._scaleVal))); } // Queue all active characters for drawing -- cgit v1.2.3