From e2715a27d1faedd01c4dfd51e189c21efbcbf9db Mon Sep 17 00:00:00 2001 From: divverent Date: Sat, 19 Mar 2011 12:23:09 +0000 Subject: [PATCH] turn "assignment to world" from dprint into warning (so backtraces can work) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10930 d7cf8633-e32d-0410-b094-e92efae38249 --- prvm_execprogram.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prvm_execprogram.h b/prvm_execprogram.h index d8d3e140..1f8bbc62 100644 --- a/prvm_execprogram.h +++ b/prvm_execprogram.h @@ -167,7 +167,7 @@ goto cleanup; } if (OPB->_int < prog->progs->entityfields && !prog->allowworldwrites) - Con_DPrintf("WARNING: assignment to world.%s (field %i) in %s\n", PRVM_GetString(PRVM_ED_FieldAtOfs(OPB->_int)->s_name), OPB->_int, PRVM_NAME); + VM_Warning("assignment to world.%s (field %i) in %s\n", PRVM_GetString(PRVM_ED_FieldAtOfs(OPB->_int)->s_name), OPB->_int, PRVM_NAME); ptr = (prvm_eval_t *)(prog->edictsfields + OPB->_int); ptr->_int = OPA->_int; break; @@ -179,7 +179,7 @@ goto cleanup; } if (OPB->_int < prog->progs->entityfields && !prog->allowworldwrites) - Con_DPrintf("WARNING: assignment to world.%s (field %i) in %s\n", PRVM_GetString(PRVM_ED_FieldAtOfs(OPB->_int)->s_name), OPB->_int, PRVM_NAME); + VM_Warning("assignment to world.%s (field %i) in %s\n", PRVM_GetString(PRVM_ED_FieldAtOfs(OPB->_int)->s_name), OPB->_int, PRVM_NAME); ptr = (prvm_eval_t *)(prog->edictsfields + OPB->_int); ptr->ivector[0] = OPA->ivector[0]; ptr->ivector[1] = OPA->ivector[1]; -- 2.39.2