0
0
Fork 0
mirror of https://github.com/nzp-team/fteqw.git synced 2025-03-21 15:51:55 +00:00

small bug. functionname wasn't offset by the string table.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1046 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-05-22 13:07:08 +00:00
parent a579c12f79
commit 4bad00fba8
4 changed files with 13 additions and 13 deletions

View file

@ -1012,7 +1012,7 @@ reeval:
{
pr_xstatement = s = st-pr_statements;
printf("Break point hit in %s.\n", pr_xfunction->s_name);
printf("Break point hit in %s.\n", pr_xfunction->s_name+progfuncs->stringtable);
if (pr_trace<1)
pr_trace=1; //this is what it's for

View file

@ -987,8 +987,8 @@ reeval:
PR_RunError(progfuncs, "Progs boundcheck failed. Value is %i.", OPA->_int);
}
break;
case OP_PUSH:
OPC->_int = (int)&localstack[localstack_used+pr_spushed];
/* case OP_PUSH:
OPC->_int = ENGINEPOINTER(&localstack[localstack_used+pr_spushed]);
pr_spushed += OPA->_int;
if (pr_spushed + localstack_used >= LOCALSTACK_SIZE)
{
@ -1006,13 +1006,13 @@ reeval:
PR_RunError(progfuncs, "Progs poped more than it pushed");
}
break;
*/
default:
if (st->op & 0x8000) //break point!
{
pr_xstatement = s = st-pr_statements;
printf("Break point hit in %s.\n", pr_xfunction->s_name);
printf("Break point hit in %s.\n", pr_xfunction->s_name+progfuncs->stringtable);
if (pr_trace<1)
pr_trace=1; //this is what it's for

View file

@ -987,8 +987,8 @@ reeval:
PR_RunError(progfuncs, "Progs boundcheck failed. Value is %i.", OPA->_int);
}
break;
case OP_PUSH:
OPC->_int = (int)&localstack[localstack_used+pr_spushed];
/* case OP_PUSH:
OPC->_int = ENGINEPOINTER(&localstack[localstack_used+pr_spushed]);
pr_spushed += OPA->_int;
if (pr_spushed + localstack_used >= LOCALSTACK_SIZE)
{
@ -1006,13 +1006,13 @@ reeval:
PR_RunError(progfuncs, "Progs poped more than it pushed");
}
break;
*/
default:
if (st->op & 0x8000) //break point!
{
pr_xstatement = s = st-pr_statements;
printf("Break point hit in %s.\n", pr_xfunction->s_name);
printf("Break point hit in %s.\n", pr_xfunction->s_name+progfuncs->stringtable);
if (pr_trace<1)
pr_trace=1; //this is what it's for

View file

@ -987,8 +987,8 @@ reeval:
PR_RunError(progfuncs, "Progs boundcheck failed. Value is %i.", OPA->_int);
}
break;
case OP_PUSH:
OPC->_int = (int)&localstack[localstack_used+pr_spushed];
/* case OP_PUSH:
OPC->_int = ENGINEPOINTER(&localstack[localstack_used+pr_spushed]);
pr_spushed += OPA->_int;
if (pr_spushed + localstack_used >= LOCALSTACK_SIZE)
{
@ -1006,13 +1006,13 @@ reeval:
PR_RunError(progfuncs, "Progs poped more than it pushed");
}
break;
*/
default:
if (st->op & 0x8000) //break point!
{
pr_xstatement = s = st-pr_statements;
printf("Break point hit in %s.\n", pr_xfunction->s_name);
printf("Break point hit in %s.\n", pr_xfunction->s_name+progfuncs->stringtable);
if (pr_trace<1)
pr_trace=1; //this is what it's for