Removed script_error_flag and script_debug_flag, which were used to error out if something went wrong and open the debugger console. Changed all the places where they were used to error() out instead, as ScummVM's debugger console can open on error()
svn-id: r41073
This commit is contained in:
parent
cf68dc1a7b
commit
e55388c787
12 changed files with 51 additions and 107 deletions
|
@ -1400,7 +1400,6 @@ static int c_sret(EngineState *s, const Common::Array<cmd_param_t> &cmdParams) {
|
|||
static int c_go(EngineState *s, const Common::Array<cmd_param_t> &cmdParams) {
|
||||
_debug_seeking = 0;
|
||||
_debugstate_valid = 0;
|
||||
script_debug_flag = 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -1795,7 +1794,7 @@ int c_bpdel(EngineState *s, const Common::Array<cmd_param_t> &cmdParams) {
|
|||
|
||||
int c_se(EngineState *s, const Common::Array<cmd_param_t> &cmdParams) {
|
||||
stop_on_event = 1;
|
||||
_debugstate_valid = script_debug_flag = script_error_flag = 0;
|
||||
_debugstate_valid = 0;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -1908,9 +1907,6 @@ void script_debug(EngineState *s, reg_t *pc, StackPtr *sp, StackPtr *pp, reg_t *
|
|||
|
||||
_debugstate_valid = old_debugstate;
|
||||
|
||||
if (!script_debug_flag)
|
||||
return;
|
||||
|
||||
if (_debug_seeking && !bp) { // Are we looking for something special?
|
||||
MemObject *mobj = GET_SEGMENT(*s->seg_manager, pc->segment, MEM_OBJ_SCRIPT);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue