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

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Thu Jul 9 17:32:06 CEST 2009


Revision: 42292
          http://scummvm.svn.sourceforge.net/scummvm/?rev=42292&view=rev
Author:   lordhoto
Date:     2009-07-09 15:32:06 +0000 (Thu, 09 Jul 2009)

Log Message:
-----------
Cleanup.

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

Modified: scummvm/trunk/engines/kyra/lol.cpp
===================================================================
--- scummvm/trunk/engines/kyra/lol.cpp	2009-07-09 15:22:38 UTC (rev 42291)
+++ scummvm/trunk/engines/kyra/lol.cpp	2009-07-09 15:32:06 UTC (rev 42292)
@@ -1901,7 +1901,7 @@
 	_activeSpell.spell = spellType;
 	_activeSpell.p = &_spellProperties[spellType];
 
-	_activeSpell.level = spellLevel < 0 ? -spellLevel : spellLevel;
+	_activeSpell.level = ABS(spellLevel);
 
 	if ((_spellProperties[spellType].flags & 0x100) && testWallFlag(calcNewBlockPosition(_currentBlock, _currentDirection), _currentDirection, 1)) {
 		_txt->printMessage(2, getLangString(0x4257));


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