mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 09:51:41 +00:00
allow a named def with 0 offset to be printed
This commit is contained in:
parent
f842d98964
commit
47d4fec5ec
1 changed files with 3 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue