diff --git a/libs/gamecode/pr_edict.c b/libs/gamecode/pr_edict.c index 2a9127a8d..3a785e9e7 100644 --- a/libs/gamecode/pr_edict.c +++ b/libs/gamecode/pr_edict.c @@ -1361,7 +1361,7 @@ PR_Init_Cvars (void) Cvar_Get ("pr_boundscheck", "1", CVAR_NONE, NULL, "Server progs bounds checking"); pr_deadbeef = Cvar_Get ("pr_deadbeef", "0", CVAR_NONE, NULL, - "set to clear unallocated memory ot 0xdeadbeef"); + "set to clear unallocated memory to 0xdeadbeef"); PR_Debug_Init_Cvars (); } diff --git a/libs/gamecode/pr_exec.c b/libs/gamecode/pr_exec.c index a1285780f..01d135273 100644 --- a/libs/gamecode/pr_exec.c +++ b/libs/gamecode/pr_exec.c @@ -48,6 +48,8 @@ //============================================================================= +extern cvar_t *pr_deadbeef; + /* PR_PrintStatement */ @@ -196,6 +198,7 @@ int PR_EnterFunction (progs_t * pr, dfunction_t *f) { int i, j, c, o; +// int k; //printf("%s:\n", PR_GetString(pr,f->s_name)); pr->pr_stack[pr->pr_depth].s = pr->pr_xstatement; @@ -214,6 +217,10 @@ PR_EnterFunction (progs_t * pr, dfunction_t *f) sizeof (pr_type_t) * c); pr->localstack_used += c; +// if (pr_deadbeef->int_val) +// for (k = f->parm_start; k < f->parm_start + c; k++) +// pr->pr_globals[k].integer_var = 0xdeadbeef; + // copy parameters o = f->parm_start; for (i = 0; i < f->numparms; i++) {