bah, the other part of that commit :P

This commit is contained in:
Bill Currie 2007-04-09 08:55:24 +00:00 committed by Jeff Teunissen
parent 59498cd5e7
commit 61d349ec78
3 changed files with 4 additions and 5 deletions

View file

@ -504,7 +504,7 @@ value_string (progs_t *pr, etype_t type, pr_type_t *val)
break;
case ev_entity:
edict = PROG_TO_EDICT (pr, val->entity_var);
dsprintf (line, "entity %ld", NUM_FOR_BAD_EDICT (pr, edict));
dsprintf (line, "entity %d", NUM_FOR_BAD_EDICT (pr, edict));
break;
case ev_func:
if (val->func_var < 0 || val->func_var >= pr->progs->numfunctions)
@ -861,7 +861,7 @@ ED_Print (progs_t *pr, edict_t *ed)
return;
}
Sys_Printf ("\nEDICT %ld:\n", NUM_FOR_BAD_EDICT (pr, ed));
Sys_Printf ("\nEDICT %d:\n", NUM_FOR_BAD_EDICT (pr, ed));
for (i = 0; i < pr->progs->numfielddefs; i++) {
d = &pr->pr_fielddefs[i];
if (!d->s_name) // null field def (probably 1st)

View file

@ -67,8 +67,7 @@ ED_ClearEdict (progs_t *pr, edict_t *e, int val)
pr_uint_t i;
if (NUM_FOR_EDICT (pr, e) < *pr->reserved_edicts)
Sys_Printf ("clearing reserved edict %ld\n",
NUM_FOR_EDICT (pr, e));
Sys_Printf ("clearing reserved edict %d\n", NUM_FOR_EDICT (pr, e));
for (i=0; i < pr->progs->entityfields; i++)
e->v[i].integer_var = val;
e->free = false;

View file

@ -82,7 +82,7 @@ PR_UglyValueString (progs_t *pr, etype_t type, pr_type_t *val)
PR_GetString (pr, val->string_var));
break;
case ev_entity:
snprintf (line, sizeof (line), "%ld",
snprintf (line, sizeof (line), "%d",
NUM_FOR_BAD_EDICT (pr, PROG_TO_EDICT (pr, val->entity_var)));
break;
case ev_func: