From 95cd669efbe9e907a8f48f2066de9a8bfbafaf93 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Mon, 28 Sep 2009 21:58:48 +0000 Subject: Fix for bug #2868581 "KYRA1: Invisible Brandon". svn-id: r44450 --- engines/kyra/saveload_lok.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'engines') 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); -- cgit v1.2.3