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

athrxx at users.sourceforge.net athrxx at users.sourceforge.net
Mon Jan 18 08:21:54 CET 2010


Revision: 47354
          http://scummvm.svn.sourceforge.net/scummvm/?rev=47354&view=rev
Author:   athrxx
Date:     2010-01-18 07:21:54 +0000 (Mon, 18 Jan 2010)

Log Message:
-----------
LOL: cleanup last commit

Modified Paths:
--------------
    scummvm/trunk/engines/kyra/lol.cpp
    scummvm/trunk/engines/kyra/saveload_lol.cpp

Modified: scummvm/trunk/engines/kyra/lol.cpp
===================================================================
--- scummvm/trunk/engines/kyra/lol.cpp	2010-01-18 00:56:30 UTC (rev 47353)
+++ scummvm/trunk/engines/kyra/lol.cpp	2010-01-18 07:21:54 UTC (rev 47354)
@@ -519,6 +519,8 @@
 	_automapShapes = new const uint8*[109];
 	_mapOverlay = new uint8[256];
 
+	memset(_availableSpells, -1, 8);
+
 	_spellProcs.push_back(new SpellProc(this, &LoLEngine::castSpark));
 	_spellProcs.push_back(new SpellProc(this, &LoLEngine::castHeal));
 	_spellProcs.push_back(new SpellProc(this, &LoLEngine::castIce));
@@ -891,7 +893,6 @@
 	_inventory[1] = makeItem(217, 0, 0);
 	_inventory[2] = makeItem(218, 0, 0);
 
-	memset(_availableSpells, -1, 8);
 	_availableSpells[0] = 0;
 	setupScreenDims();
 

Modified: scummvm/trunk/engines/kyra/saveload_lol.cpp
===================================================================
--- scummvm/trunk/engines/kyra/saveload_lol.cpp	2010-01-18 00:56:30 UTC (rev 47353)
+++ scummvm/trunk/engines/kyra/saveload_lol.cpp	2010-01-18 07:21:54 UTC (rev 47354)
@@ -267,7 +267,6 @@
 	gui_drawPlayField();
 	timerSpecialCharacterUpdate(0);
 	_flagsTable[73] |= 0x08;
-	_availableSpells[7] = -1;
 
 	while (!_screen->isMouseVisible())
 		_screen->showMouse();


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