[Scummvm-cvs-logs] CVS: scummvm/scumm scumm.cpp,1.212,1.213

Travis Howell kirben at users.sourceforge.net
Sat Sep 18 23:02:03 CEST 2004


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

Modified Files:
	scumm.cpp 
Log Message:

Enable debug mode in HE80+ games.


Index: scumm.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/scumm.cpp,v
retrieving revision 1.212
retrieving revision 1.213
diff -u -d -r1.212 -r1.213
--- scumm.cpp	18 Sep 2004 22:42:44 -0000	1.212
+++ scumm.cpp	19 Sep 2004 06:01:46 -0000	1.213
@@ -1460,6 +1460,8 @@
 		}
 		if (_heversion >= 80)
 			VAR(VAR_WINDOWS_VERSION) = 40;
+			// Enable built-in debug mode keys
+			VAR(85) = 1;
 		if (_heversion >= 90)
 			VAR(VAR_NUM_SPRITES) = _numSprites - 1;
 	} else {
@@ -1749,36 +1751,6 @@
 		_completeScreenRedraw = false;
 		_charset->clearCharsetMask();
 		_charset->_hasMask = false;
-
-		// HACK as in game save stuff isn't supported currently
-		if (_gameId == GID_LOOM || _gameId == GID_LOOM256) {
-			int args[16];
-			uint value;
-			memset(args, 0, sizeof(args));
-			args[0] = 2;
-
-			if (_features & GF_MACINTOSH)
-				value = 105;
-			else
- 				value = (_gameId == GID_LOOM256) ? 150 : 100;
-			byte restoreScript = (_features & GF_FMTOWNS) ? 17 : 18;
-			// if verbs should be shown restore them
-			if (VAR(value) == 2)
-				runScript(restoreScript, 0, 0, args);
-		} else if (_version > 3) {
-			for (int i = 0; i < _numVerbs; i++)
-				drawVerb(i, 0);
-		} else {
-			redrawVerbs();
-		}
-
-		verbMouseOver(0);
-
-		if (_version <= 2) {
-			redrawV2Inventory();
-			checkV2MouseOver(_mouse);
-		}
-
 		_fullRedraw = true;
 	}
 





More information about the Scummvm-git-logs mailing list