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
This commit is contained in:
Spoike 2004-11-08 11:46:34 +00:00
parent 53ffe9c50e
commit 98d6bf162d
1 changed files with 5 additions and 2 deletions

View File

@ -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