[Scummvm-cvs-logs] SF.net SVN: scummvm:[42250] scummvm/branches/gsoc2009-draci/engines/draci

dkasak13 at users.sourceforge.net dkasak13 at users.sourceforge.net
Wed Jul 8 02:40:22 CEST 2009


Revision: 42250
          http://scummvm.svn.sourceforge.net/scummvm/?rev=42250&view=rev
Author:   dkasak13
Date:     2009-07-08 00:40:22 +0000 (Wed, 08 Jul 2009)

Log Message:
-----------
Made the engine clear some more caches when it changes rooms (room, sprites and palette caches). Made the DraciEngine destructor delete the rooms, overlays and animations archives.

Modified Paths:
--------------
    scummvm/branches/gsoc2009-draci/engines/draci/draci.cpp
    scummvm/branches/gsoc2009-draci/engines/draci/game.cpp

Modified: scummvm/branches/gsoc2009-draci/engines/draci/draci.cpp
===================================================================
--- scummvm/branches/gsoc2009-draci/engines/draci/draci.cpp	2009-07-08 00:34:53 UTC (rev 42249)
+++ scummvm/branches/gsoc2009-draci/engines/draci/draci.cpp	2009-07-08 00:40:22 UTC (rev 42250)
@@ -176,6 +176,9 @@
 	delete _paletteArchive;
 	delete _objectsArchive;
 	delete _spritesArchive;
+	delete _roomsArchive;
+	delete _overlaysArchive;
+	delete _animationsArchive;
 	
 	// Remove all of our debug levels here
 	Common::clearAllDebugChannels();

Modified: scummvm/branches/gsoc2009-draci/engines/draci/game.cpp
===================================================================
--- scummvm/branches/gsoc2009-draci/engines/draci/game.cpp	2009-07-08 00:34:53 UTC (rev 42249)
+++ scummvm/branches/gsoc2009-draci/engines/draci/game.cpp	2009-07-08 00:40:22 UTC (rev 42250)
@@ -316,7 +316,10 @@
 }
 
 void Game::changeRoom(uint roomNum) {
-	_vm->_roomsArchive->clearCache();	
+	_vm->_roomsArchive->clearCache();
+	_vm->_spritesArchive->clearCache();
+	_vm->_paletteArchive->clearCache();
+
 	_vm->_anims->deleteOverlays();
 
 	int oldRoomNum = _currentRoom._roomNum;


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