diff options
Diffstat (limited to 'scumm')
| -rw-r--r-- | scumm/debugger.cpp | 4 | ||||
| -rw-r--r-- | scumm/script.cpp | 2 | ||||
| -rw-r--r-- | scumm/scumm.h | 3 | 
3 files changed, 5 insertions, 4 deletions
diff --git a/scumm/debugger.cpp b/scumm/debugger.cpp index 5cedd84902..2a8a8f6e4b 100644 --- a/scumm/debugger.cpp +++ b/scumm/debugger.cpp @@ -335,7 +335,7 @@ bool ScummDebugger::Cmd_Show(int argc, const char **argv) {  		_s->_hexdumpScripts = true;  		Debug_Printf("Script hex dumping on\n");  	} else if (!strncmp(argv[1], "sta", 3)) { -		_s->_showStack = true; +		_s->_showStack = 1;  		Debug_Printf("Stack tracing on\n");  	} else {  		Debug_Printf("Unknown show parameter '%s'\n", argv[1]); @@ -354,7 +354,7 @@ bool ScummDebugger::Cmd_Hide(int argc, const char **argv) {  		_s->_hexdumpScripts = false;  		Debug_Printf("Script hex dumping off\n");  	} else if (!strncmp(argv[1], "sta", 3)) { -		_s->_showStack = false; +		_s->_showStack = 0;  		Debug_Printf("Stack tracing off\n");  	} else {  		Debug_Printf("Unknown hide parameter '%s'\n", argv[1]); diff --git a/scumm/script.cpp b/scumm/script.cpp index 7552675fd0..384c46ecc8 100644 --- a/scumm/script.cpp +++ b/scumm/script.cpp @@ -280,7 +280,7 @@ void Scumm::executeScript() {  	int c;  	while (_currentScript != 0xFF) { -		if (_showStack == true) { +		if (_showStack == 1) {  			printf("Stack:");  			for (c=0; c < _scummStackPos; c++) {  				printf(" %d", _scummStack[c]);  diff --git a/scumm/scumm.h b/scumm/scumm.h index e1e20f885b..d49d36ca20 100644 --- a/scumm/scumm.h +++ b/scumm/scumm.h @@ -420,7 +420,8 @@ protected:  	int16 _virtual_mouse_x, _virtual_mouse_y;  	int _bootParam; -	bool _dumpScripts, _hexdumpScripts, _showStack; +	bool _dumpScripts, _hexdumpScripts; +	int _showStack;  	uint16 _debugMode, _soundCardType;  	/* Not sure where this stuff goes */  | 
