[Scummvm-cvs-logs] CVS: scummvm/scumm gfx.cpp,1.29,1.30

Pawe? Ko?odziejski aquadran at users.sourceforge.net
Sun Oct 13 04:29:02 CEST 2002


Update of /cvsroot/scummvm/scummvm/scumm
In directory usw-pr-cvs1:/tmp/cvs-serv3631

Modified Files:
	gfx.cpp 
Log Message:
fixed crash after load some savegames - proper height initialisation

Index: gfx.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/gfx.cpp,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- gfx.cpp	11 Oct 2002 11:50:06 -0000	1.29
+++ gfx.cpp	13 Oct 2002 11:28:39 -0000	1.30
@@ -89,6 +89,11 @@
 	assert(height >= 0);
 	assert(slot >= 0 && slot < 4);
 
+	if (_gameId == GID_DIG) {
+		if ((!slot) && (_scrHeight != 0))
+			height = _scrHeight;
+	}
+
 	vs->number = slot;
 	vs->unk1 = 0;
 	vs->width = _realWidth;





More information about the Scummvm-git-logs mailing list