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

athrxx at users.sourceforge.net athrxx at users.sourceforge.net
Fri Feb 22 08:00:13 CET 2008


Revision: 30915
          http://scummvm.svn.sourceforge.net/scummvm/?rev=30915&view=rev
Author:   athrxx
Date:     2008-02-21 23:00:12 -0800 (Thu, 21 Feb 2008)

Log Message:
-----------
palette bug fix (inventory turned blue when leaving the scene after eating the mushroom)

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

Modified: scummvm/trunk/engines/kyra/script_v2.cpp
===================================================================
--- scummvm/trunk/engines/kyra/script_v2.cpp	2008-02-22 00:33:56 UTC (rev 30914)
+++ scummvm/trunk/engines/kyra/script_v2.cpp	2008-02-22 07:00:12 UTC (rev 30915)
@@ -846,7 +846,9 @@
 	}
 	snd_playSoundEffect(106);
 	_screen->fadePalette(_screen->_currentPalette, 90, &_updateFunctor);
-	_screen->fadePalette(_screen->getPalette(1), 30, &_updateFunctor);	
+	
+	memcpy(_screen->_currentPalette, _screen->getPalette(1), 768);
+	_screen->fadePalette(_screen->_currentPalette, 30, &_updateFunctor);	
 
 	return 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