From 47d4fec5ec3c5cad5c38605c9c6e0c289e3b5223 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 22 Apr 2003 05:39:12 +0000 Subject: [PATCH] allow a named def with 0 offset to be printed --- tools/qfprogs/source/globals.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/qfprogs/source/globals.c b/tools/qfprogs/source/globals.c index d6db30ed3..075101e55 100644 --- a/tools/qfprogs/source/globals.c +++ b/tools/qfprogs/source/globals.c @@ -55,14 +55,14 @@ dump_globals (progs_t *pr) for (i = 0; i < pr->progs->numglobaldefs; i++) { ddef_t *def = &pr->pr_globaldefs[i]; + if (!def->type && !def->ofs && !def->s_name) + continue; + name = PR_GetString (pr, def->s_name); type = pr_type_name[def->type & ~DEF_SAVEGLOBAL]; saveglobal = (def->type & DEF_SAVEGLOBAL) != 0; offset = def->ofs; - if (!offset) - continue; - comment = " "; if (def->type == ev_func) {