[Scummvm-cvs-logs] CVS: scummvm/scumm akos.cpp,1.251,1.252

kirben kirben at users.sourceforge.net
Sat Feb 4 02:19:02 CET 2006


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11540/scumm

Modified Files:
	akos.cpp 
Log Message:

Reset shadow for each cycle.


Index: akos.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/akos.cpp,v
retrieving revision 1.251
retrieving revision 1.252
diff -u -d -r1.251 -r1.252
--- akos.cpp	4 Feb 2006 02:16:18 -0000	1.251
+++ akos.cpp	4 Feb 2006 10:18:25 -0000	1.252
@@ -466,11 +466,13 @@
 				_ymove -= lastDy;
 			}
 
-			uint16 shadowMask = 0;
+			if (_vm->_heversion >= 90)
+				_shadow_mode = 0;
 
 			if (!useCondMask || !akct) {
 				decflag = 1;
 			} else {
+				uint16 shadowMask = 0;
 				uint32 cond = READ_LE_UINT32(akct + cost.heCondMaskTable[limb] + heCondMaskIndex[i] * 4);
 				if (cond == 0) {
 					decflag = 1;
@@ -491,9 +493,8 @@
 						decflag = (a->_heCondMask & cond) ? 1 : 0;
 					}
 
-					if (_vm->_heversion >= 90) {
-						_shadow_mode = ((shadowMask & 0x8000) && xmap) ? 3 : 0;
-					}
+					if (_vm->_heversion >= 90 && (shadowMask & 0x8000) && xmap)
+						_shadow_mode = 3;
 				}
 			}
 





More information about the Scummvm-git-logs mailing list