]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
turn "assignment to world" from dprint into warning (so backtraces can work)
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 19 Mar 2011 12:23:09 +0000 (12:23 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 19 Mar 2011 12:23:09 +0000 (12:23 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10930 d7cf8633-e32d-0410-b094-e92efae38249

prvm_execprogram.h

index d8d3e14071145c3906e46f2a20d1ae9c9ad3713c..1f8bbc62a57ce82ef8387a352463ffbbc8ad7bd3 100644 (file)
                                        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;
                                        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];