[Scummvm-cvs-logs] CVS: scummvm/saga actor.cpp,1.119,1.120

Torbjörn Andersson eriktorbjorn at users.sourceforge.net
Sun Apr 24 05:08:52 CEST 2005


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

Modified Files:
	actor.cpp 
Log Message:
I believe this is the correct fix for the sanctuary door bug.


Index: actor.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/actor.cpp,v
retrieving revision 1.119
retrieving revision 1.120
diff -u -d -r1.119 -r1.120
--- actor.cpp	22 Apr 2005 14:10:57 -0000	1.119
+++ actor.cpp	24 Apr 2005 12:08:27 -0000	1.120
@@ -1806,12 +1806,14 @@
 
 	for (iteratorPoint.y = 0; iteratorPoint.y < _yCellCount; iteratorPoint.y++) {
 		for (iteratorPoint.x = 0; iteratorPoint.x < _xCellCount; iteratorPoint.x++) {
+			// This is almost, but not quite, the same thing as canWalk().
+			// Is that difference significant or not?
 			if (_vm->_scene->validBGMaskPoint(iteratorPoint)) {
 				maskType = _vm->_scene->getBGMaskType(iteratorPoint);
+				setPathCell(iteratorPoint, _vm->_scene->getDoorState(maskType) ? kPathCellBarrier : kPathCellEmpty);
 			} else {
-				maskType = 1;
+				setPathCell(iteratorPoint, kPathCellBarrier);
 			}			
-			setPathCell(iteratorPoint, maskType ? kPathCellBarrier : kPathCellEmpty);			
 		}
 	}
 





More information about the Scummvm-git-logs mailing list