[Scummvm-cvs-logs] SF.net SVN: scummvm:[44451] scummvm/branches/branch-1-0-0/engines/kyra/ saveload_lok.cpp
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Tue Sep 29 00:01:56 CEST 2009
Revision: 44451
http://scummvm.svn.sourceforge.net/scummvm/?rev=44451&view=rev
Author: lordhoto
Date: 2009-09-28 22:01:54 +0000 (Mon, 28 Sep 2009)
Log Message:
-----------
Backport of r44450: Fix for bug #2868581 "KYRA1: Invisible Brandon".
Modified Paths:
--------------
scummvm/branches/branch-1-0-0/engines/kyra/saveload_lok.cpp
Modified: scummvm/branches/branch-1-0-0/engines/kyra/saveload_lok.cpp
===================================================================
--- scummvm/branches/branch-1-0-0/engines/kyra/saveload_lok.cpp 2009-09-28 21:58:48 UTC (rev 44450)
+++ scummvm/branches/branch-1-0-0/engines/kyra/saveload_lok.cpp 2009-09-28 22:01:54 UTC (rev 44451)
@@ -208,6 +208,12 @@
_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);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list