[Scummvm-cvs-logs] CVS: scummvm/scumm gfx.cpp,2.207,2.208

Jonathan Gray khalek at users.sourceforge.net
Fri Aug 29 00:58:03 CEST 2003


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

Modified Files:
	gfx.cpp 
Log Message:
fix dottdemo by checking that room exists before trying to set a custom cursor from it, fixes bug #796971

Index: gfx.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/gfx.cpp,v
retrieving revision 2.207
retrieving revision 2.208
diff -u -d -r2.207 -r2.208
--- gfx.cpp	29 Aug 2003 06:46:12 -0000	2.207
+++ gfx.cpp	29 Aug 2003 07:57:20 -0000	2.208
@@ -3407,7 +3407,7 @@
 
 void Scumm::setupCursor() {
 	_cursor.animate = 1;
-	if (_gameId == GID_TENTACLE) {
+	if (_gameId == GID_TENTACLE && res.roomno[rtRoom][60]) {
 		// HACK: For DOTT we manually set the default cursor. See also bug #786994
 		setCursorImg(697, 60, 1);
 		makeCursorColorTransparent(1);





More information about the Scummvm-git-logs mailing list