[Scummvm-cvs-logs] SF.net SVN: scummvm: [22660] scummvm/trunk/engines/kyra/saveload.cpp
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Fri May 26 07:17:07 CEST 2006
Revision: 22660
Author: lordhoto
Date: 2006-05-26 07:16:42 -0700 (Fri, 26 May 2006)
ViewCVS: http://svn.sourceforge.net/scummvm/?rev=22660&view=rev
Log Message:
-----------
- redraw inventory before entering a room
- some cleanup
Modified Paths:
--------------
scummvm/trunk/engines/kyra/saveload.cpp
Modified: scummvm/trunk/engines/kyra/saveload.cpp
===================================================================
--- scummvm/trunk/engines/kyra/saveload.cpp 2006-05-26 14:00:52 UTC (rev 22659)
+++ scummvm/trunk/engines/kyra/saveload.cpp 2006-05-26 14:16:42 UTC (rev 22660)
@@ -188,8 +188,9 @@
_configVoice = in->readByte();
}
+ loadMainScreen(8);
+
if (queryGameFlag(0x2D)) {
- loadMainScreen(8);
loadBitmap("AMULET3.CPS", 10, 10, 0);
if (!queryGameFlag(0xF1)) {
for (int i = 0x55; i <= 0x5A; ++i) {
@@ -199,15 +200,12 @@
}
}
_screen->copyRegion(0, 0, 0, 0, 320, 200, 10, 8);
- uint8 *_pageSrc = _screen->getPagePtr(8);
- uint8 *_pageDst = _screen->getPagePtr(0);
- memcpy(_pageDst, _pageSrc, 320*200);
- } else {
- loadMainScreen(8);
+ _screen->copyRegion(0, 0, 0, 0, 320, 200, 8, 0);
}
createMouseItem(_itemInHand);
_animator->setBrandonAnimSeqSize(3, 48);
+ redrawInventory(0);
_animator->_noDrawShapesFlag = 1;
enterNewScene(_currentCharacter->sceneId, _currentCharacter->facing, 0, 0, 1);
_animator->_noDrawShapesFlag = 0;
@@ -220,7 +218,6 @@
_animator->prepDrawAllObjects();
_animator->copyChangedObjectsForward(0);
_screen->copyRegion(8, 8, 8, 8, 304, 128, 2, 0);
- redrawInventory(0);
_abortWalkFlag = true;
_abortWalkFlag2 = false;
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