From 98d6bf162d117cf43585b72f3d9fc8dea65e53a0 Mon Sep 17 00:00:00 2001 From: Spoike Date: Mon, 8 Nov 2004 11:46:34 +0000 Subject: [PATCH] assignment to world now names a function. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@403 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/qclib/execloop.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/engine/qclib/execloop.h b/engine/qclib/execloop.h index c29b3462d..442c89947 100644 --- a/engine/qclib/execloop.h +++ b/engine/qclib/execloop.h @@ -390,7 +390,10 @@ reeval: NUM_FOR_EDICT(ed); // make sure it's in range #endif if (ed->readonly) - PR_RunError (progfuncs, "assignment to read-only entity"); + { + pr_xstatement = st-pr_statements; + PR_RunError (progfuncs, "assignment to read-only entity in %s", pr_xfunction->s_name); + } OPC->_int = (int)(((int *)edvars(ed)) + OPB->_int + progfuncs->fieldadjust); break; @@ -487,7 +490,7 @@ reeval: if ((fnum & ~0xff000000)==0) { pr_trace++; - printf("NULL function from qc (%s).\n", pr_xfunction->s_name); + printf("NULL function from qc (%s).\n", pr_xfunction->s_name); #ifndef DEBUGABLE goto cont; #endif