[gamecode] Correct pop implementations

Had src and dst swapped (yay for not testing :P (boo for not having an
easy way to test (yay for working on it))).
This commit is contained in:
Bill Currie 2021-07-19 22:31:22 +09:00
parent 87dc35e2fd
commit 3ef89583af

View file

@ -1225,7 +1225,7 @@ PR_ExecuteProgram (progs_t *pr, func_t fnum)
if (pr_boundscheck->int_val) {
check_stack_pointer (pr, stack, 1);
}
stk->integer_var = OPA.integer_var;
OPA.integer_var = stk->integer_var;
*pr->globals.stack = stack + 1;
}
break;
@ -1236,7 +1236,7 @@ PR_ExecuteProgram (progs_t *pr, func_t fnum)
if (pr_boundscheck->int_val) {
check_stack_pointer (pr, stack, 3);
}
memcpy (stk, &OPA, 3 * sizeof (OPC));
memcpy (&OPA, stk, 3 * sizeof (OPC));
*pr->globals.stack = stack + 3;
}
break;
@ -1247,7 +1247,7 @@ PR_ExecuteProgram (progs_t *pr, func_t fnum)
if (pr_boundscheck->int_val) {
check_stack_pointer (pr, stack, 4);
}
memcpy (stk, &OPA, 4 * sizeof (OPC));
memcpy (&OPA, stk, 4 * sizeof (OPC));
*pr->globals.stack = stack + 4;
}
break;
@ -1271,7 +1271,7 @@ PR_ExecuteProgram (progs_t *pr, func_t fnum)
PR_BoundsCheck (pr, pointer, ev_integer);
}
stk->integer_var = ptr->integer_var;
ptr->integer_var = stk->integer_var;
*pr->globals.stack = stack + 1;
}
break;
@ -1288,7 +1288,7 @@ PR_ExecuteProgram (progs_t *pr, func_t fnum)
PR_BoundsCheck (pr, pointer, ev_integer);
}
VectorCopy (&ptr->vector_var, &stk->vector_var);
VectorCopy (&stk->vector_var, &ptr->vector_var);
*pr->globals.stack = stack + 3;
}
break;
@ -1305,7 +1305,7 @@ PR_ExecuteProgram (progs_t *pr, func_t fnum)
PR_BoundsCheck (pr, pointer, ev_quat);
}
QuatCopy (&ptr->quat_var, &stk->quat_var);
QuatCopy (&stk->quat_var, &ptr->quat_var);
*pr->globals.stack = stack + 4;
}
break;
@ -1329,7 +1329,7 @@ PR_ExecuteProgram (progs_t *pr, func_t fnum)
PR_BoundsCheck (pr, pointer, ev_integer);
}
stk->integer_var = ptr->integer_var;
ptr->integer_var = stk->integer_var;
*pr->globals.stack = stack + 1;
}
break;
@ -1346,7 +1346,7 @@ PR_ExecuteProgram (progs_t *pr, func_t fnum)
PR_BoundsCheck (pr, pointer, ev_integer);
}
VectorCopy (&ptr->vector_var, &stk->vector_var);
VectorCopy (&stk->vector_var, &ptr->vector_var);
*pr->globals.stack = stack + 3;
}
break;
@ -1363,7 +1363,7 @@ PR_ExecuteProgram (progs_t *pr, func_t fnum)
PR_BoundsCheck (pr, pointer, ev_quat);
}
QuatCopy (&ptr->quat_var, &stk->quat_var);
QuatCopy (&stk->quat_var, &ptr->quat_var);
*pr->globals.stack = stack + 4;
}
break;