From: Wolfgang (Blub) Bumiller Date: Sun, 18 Nov 2012 19:32:22 +0000 (+0100) Subject: Make the disasm a bit more verbose as to where globals are X-Git-Tag: 0.1.9~404^2~2 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=commitdiff_plain;h=12fca5ef8ff45e7408b2d9633a6954fb76673499 Make the disasm a bit more verbose as to where globals are --- diff --git a/exec.c b/exec.c index ee61c1a..f50eac1 100644 --- a/exec.c +++ b/exec.c @@ -334,16 +334,15 @@ static void trace_print_global(qc_program *prog, unsigned int glob, int vtype) def = prog_getdef(prog, glob); value = (qcany*)(&prog->globals[glob]); + len = printf("[@%u] ", glob); if (def) { const char *name = prog_getstring(prog, def->name); if (name[0] == '#') - len = printf("$"); + len += printf("$"); else - len = printf("%s ", name); + len += printf("%s ", name); vtype = def->type & DEF_TYPEMASK; } - else - len = printf("[@%u] ", glob); switch (vtype) { case TYPE_VOID: