aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorJohannes Schickel2009-09-28 21:58:48 +0000
committerJohannes Schickel2009-09-28 21:58:48 +0000
commit95cd669efbe9e907a8f48f2066de9a8bfbafaf93 (patch)
tree795fad85af076e800b7e77a8318d9378437bfb83 /engines
parent88a9099949ebd2409878cdb9ee7d3d329ead1ad8 (diff)
downloadscummvm-rg350-95cd669efbe9e907a8f48f2066de9a8bfbafaf93.tar.gz
scummvm-rg350-95cd669efbe9e907a8f48f2066de9a8bfbafaf93.tar.bz2
scummvm-rg350-95cd669efbe9e907a8f48f2066de9a8bfbafaf93.zip
Fix for bug #2868581 "KYRA1: Invisible Brandon".
svn-id: r44450
Diffstat (limited to 'engines')
-rw-r--r--engines/kyra/saveload_lok.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/kyra/saveload_lok.cpp b/engines/kyra/saveload_lok.cpp
index bb64057e3f..df12d92660 100644
--- a/engines/kyra/saveload_lok.cpp
+++ b/engines/kyra/saveload_lok.cpp
@@ -208,6 +208,12 @@ Common::Error KyraEngine_LoK::loadGameState(int slot) {
_brandonPosX = _currentCharacter->x2 = _currentCharacter->x1;
_brandonPosY = _currentCharacter->y2 = _currentCharacter->y1;
+ // We need to reset the "_noDrawShapesFlag" flag of Animator_LoK
+ // over here. Else in certain cases restoring an savegame might
+ // result in no shapes being drawn at all. See bug report
+ // #2868581 "KYRA1: Invisible Brandon" for an example of this.
+ _animator->_noDrawShapesFlag = 0;
+
enterNewScene(_currentCharacter->sceneId, _currentCharacter->facing, 0, 0, 1);
_animator->animRefreshNPC(0);