[Scummvm-cvs-logs] CVS: scummvm/simon simon.cpp,1.110,1.111 simon.h,1.34,1.35

Travis Howell kirben at users.sourceforge.net
Fri Dec 6 07:25:05 CET 2002


Update of /cvsroot/scummvm/scummvm/simon
In directory sc8-pr-cvs1:/tmp/cvs-serv8791/simon

Modified Files:
	simon.cpp simon.h 
Log Message:

Add debug levels for simon games


Index: simon.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/simon/simon.cpp,v
retrieving revision 1.110
retrieving revision 1.111
diff -u -d -r1.110 -r1.111
--- simon.cpp	6 Dec 2002 06:50:07 -0000	1.110
+++ simon.cpp	6 Dec 2002 15:24:13 -0000	1.111
@@ -138,7 +138,9 @@
 						"Features of the game that depend on sound synchronization will most likely break");
 	midi.set_volume(detector->_music_volume);
 	set_volume(detector->_sfx_volume);
+
 	_debugMode = detector->_debugMode;
+	_debugLevel = detector->_debugLevel;
 
 	_effects_paused = false;
 	_ambient_paused = false;
@@ -4467,6 +4469,13 @@
 	_start_mainscript = false;
 	_continous_mainscript = false;
 	_continous_vgascript = false;
+
+	if (_debugLevel == 2)
+		_continous_mainscript = true;
+	if (_debugLevel == 3)
+		_continous_vgascript = true;
+	if (_debugLevel == 4)
+		_start_mainscript = true;
 
 	if (_sound->hasVoice()) {
 		_vk_t_toggle = false;

Index: simon.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/simon/simon.h,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- simon.h	6 Dec 2002 14:40:40 -0000	1.34
+++ simon.h	6 Dec 2002 15:24:14 -0000	1.35
@@ -175,6 +175,7 @@
 
 	bool _mouse_pos_changed;
 	uint16 _debugMode;
+	uint16 _debugLevel;
 	bool _start_mainscript;
 	bool _continous_mainscript;
 	bool _continous_vgascript;





More information about the Scummvm-git-logs mailing list