[Scummvm-cvs-logs] CVS: scummvm/scumm gfx.cpp,2.117,2.118

Max Horn fingolfin at users.sourceforge.net
Sat May 24 14:34:04 CEST 2003


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv17871

Modified Files:
	gfx.cpp 
Log Message:
fixed flashlight oddities in Zak256

Index: gfx.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/gfx.cpp,v
retrieving revision 2.117
retrieving revision 2.118
diff -u -d -r2.117 -r2.118
--- gfx.cpp	24 May 2003 16:11:47 -0000	2.117
+++ gfx.cpp	24 May 2003 21:33:54 -0000	2.118
@@ -661,9 +661,9 @@
 		return;
 
 	// Calculate the area of the flashlight
-	if (_gameId == GID_ZAK256) {
-		x = _virtualMouse.x;
-		y = _virtualMouse.y;
+	if (_gameId == GID_ZAK256 || _gameId == GID_ZAK) {
+		x = _mouse.x + virtscr[0].xstart;
+		y = _mouse.y - virtscr[0].topline;
 	} else {
 		Actor *a = derefActor(VAR(VAR_EGO), "drawFlashlight");
 		x = a->x;





More information about the Scummvm-git-logs mailing list