mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-31 13:10:34 +00:00
bah, the other part of that commit :P
This commit is contained in:
parent
59498cd5e7
commit
61d349ec78
3 changed files with 4 additions and 5 deletions
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue