[Scummvm-cvs-logs] SF.net SVN: scummvm:[42365] scummvm/trunk/engines/kyra/saveload_lok.cpp

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Sat Jul 11 03:54:27 CEST 2009


Revision: 42365
          http://scummvm.svn.sourceforge.net/scummvm/?rev=42365&view=rev
Author:   lordhoto
Date:     2009-07-11 01:54:27 +0000 (Sat, 11 Jul 2009)

Log Message:
-----------
Fix graphics not updating, when loading a save in Kyra1. This fixes problems when loading saves in rooms like Brynn's temple, which play animations directly on scene enter.

Modified Paths:
--------------
    scummvm/trunk/engines/kyra/saveload_lok.cpp

Modified: scummvm/trunk/engines/kyra/saveload_lok.cpp
===================================================================
--- scummvm/trunk/engines/kyra/saveload_lok.cpp	2009-07-11 01:40:53 UTC (rev 42364)
+++ scummvm/trunk/engines/kyra/saveload_lok.cpp	2009-07-11 01:54:27 UTC (rev 42365)
@@ -167,7 +167,6 @@
 		}
 	}
 
-	_screen->_disableScreen = true;
 	loadMainScreen(8);
 
 	if (queryGameFlag(0x2D)) {
@@ -185,19 +184,16 @@
 	setHandItem(_itemInHand);
 	_animator->setBrandonAnimSeqSize(3, 48);
 	redrawInventory(0);
-	_animator->_noDrawShapesFlag = 1;
+	_brandonPosX = brandonX;
+	_brandonPosY = brandonY;
 	enterNewScene(_currentCharacter->sceneId, _currentCharacter->facing, 0, 0, 1);
-	_animator->_noDrawShapesFlag = 0;
 
-	_currentCharacter->x1 = brandonX;
-	_currentCharacter->y1 = brandonY;
 	_animator->animRefreshNPC(0);
 	_animator->restoreAllObjectBackgrounds();
 	_animator->preserveAnyChangedBackgrounds();
 	_animator->prepDrawAllObjects();
 	_animator->copyChangedObjectsForward(0);
 	_screen->copyRegion(8, 8, 8, 8, 304, 128, 2, 0);
-	_screen->_disableScreen = false;
 	_screen->updateScreen();
 
 	setMousePos(brandonX, brandonY);


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