mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 12:52:46 +00:00
minor debugging tweaks
This commit is contained in:
parent
6805d479f3
commit
72e5221f06
2 changed files with 4 additions and 3 deletions
|
@ -424,13 +424,13 @@ PR_PrintStatement (progs_t * pr, dstatement_t *s)
|
|||
case OP_IFA:
|
||||
ofs = (short) s->b;
|
||||
|
||||
Sys_Printf ("%s branch %i (%i)",
|
||||
Sys_Printf ("%s branch %i (%04x)",
|
||||
PR_GlobalString (pr, s->a, ev_integer)->str, ofs, addr + ofs);
|
||||
break;
|
||||
|
||||
case OP_GOTO:
|
||||
ofs = (short) s->a;
|
||||
Sys_Printf ("branch %i (%i)", ofs, addr + ofs);
|
||||
Sys_Printf ("branch %i (%04x)", ofs, addr + ofs);
|
||||
break;
|
||||
|
||||
case OP_RETURN:
|
||||
|
|
|
@ -304,7 +304,8 @@ PR_GlobalString (progs_t *pr, int ofs, etype_t type)
|
|||
else
|
||||
dsprintf (line, "%s", s);
|
||||
} else if (strequal(name, "?"))
|
||||
dsprintf (line, "[$%x]", ofs);
|
||||
dsprintf (line, "[$%x](%08x)", ofs,
|
||||
pr->pr_globals[ofs].integer_var);
|
||||
else {
|
||||
if (type == ev_func)
|
||||
dsprintf (line, "%s%s", name, oi);
|
||||
|
|
Loading…
Reference in a new issue