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

athrxx at users.sourceforge.net athrxx at users.sourceforge.net
Thu Oct 8 22:37:10 CEST 2009


Revision: 44798
          http://scummvm.svn.sourceforge.net/scummvm/?rev=44798&view=rev
Author:   athrxx
Date:     2009-10-08 20:37:10 +0000 (Thu, 08 Oct 2009)

Log Message:
-----------
LOL/PC-98: fixed lightning spell

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

Modified: scummvm/trunk/engines/kyra/lol.cpp
===================================================================
--- scummvm/trunk/engines/kyra/lol.cpp	2009-10-08 20:22:12 UTC (rev 44797)
+++ scummvm/trunk/engines/kyra/lol.cpp	2009-10-08 20:37:10 UTC (rev 44798)
@@ -2947,7 +2947,15 @@
 		Palette tpal(p1.getNumColors());
 		tpal.copy(p1);
 
-		for (int i = 6; i < 384; i++) {
+		int start = 6;
+		int end = 384;
+
+		if (_flags.use16ColorMode) {
+			start = 3;
+			end = 48;
+		}
+
+		for (int i = start; i < end; i++) {
 			uint16 v = (tpal[i] * 120) / 64;
 			tpal[i] = (v < 64) ? v : 63;
 		}


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