[Scummvm-cvs-logs] SF.net SVN: scummvm: [27130] scummvm/trunk/engines/agos/draw.cpp

Kirben at users.sourceforge.net Kirben at users.sourceforge.net
Wed Jun 6 12:41:28 CEST 2007


Revision: 27130
          http://scummvm.svn.sourceforge.net/scummvm/?rev=27130&view=rev
Author:   Kirben
Date:     2007-06-06 03:41:27 -0700 (Wed, 06 Jun 2007)

Log Message:
-----------
Fix the Unholy Barrier spell effect in Elvira 2.

Modified Paths:
--------------
    scummvm/trunk/engines/agos/draw.cpp

Modified: scummvm/trunk/engines/agos/draw.cpp
===================================================================
--- scummvm/trunk/engines/agos/draw.cpp	2007-06-06 09:52:21 UTC (rev 27129)
+++ scummvm/trunk/engines/agos/draw.cpp	2007-06-06 10:41:27 UTC (rev 27130)
@@ -227,6 +227,7 @@
 	}
 
 	if (getGameType() == GType_ELVIRA1 && _variableArray[293]) {
+		// Used by the Fire Wall and Ice Wall spells
 		debug(0, "Using special wall");
 
 		uint8 color, h, len;
@@ -256,10 +257,9 @@
 		}			
 
 		_window4Flag = 1;
-		setMoveRect(0, 224, 0, 127);
+		setMoveRect(0, 0, 224, 127);
 	} else if (getGameType() == GType_ELVIRA2 && _variableArray[71] & 2) {
-		debug(0, "Using special wall");
-
+		// Used by the Unholy Barrier spell
 		uint8 color, h, len;
 		byte *dst = _window4BackScn;
 
@@ -284,14 +284,14 @@
 			while (len--) {
 				dst += 2;
 				*dst++ = color;
-				dst++;
+				dst += 1;
 			}
 			dst += 448;
 			h--;
 		}			
 
 		_window4Flag = 1;
-		setMoveRect(0, 224, 0, 127);
+		setMoveRect(0, 0, 224, 127);
 	}
 
 	if (_window6Flag == 1)


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