ref: a55ed79bc31af362885c9e92b5a3e7e5129f0045
parent: e3a806cc094848794d6115914eeb8bf0e0ae1b2a
author: Simon Howard <[email protected]>
date: Tue Dec 2 13:58:45 EST 2008
Fix endianness bug with Hexen ACS code. Subversion-branch: /branches/raven-branch Subversion-revision: 1400
--- a/src/hexen/p_acs.c
+++ b/src/hexen/p_acs.c
@@ -1280,7 +1280,7 @@
static int CmdGoto(void)
{
- PCodePtr = (int *) (ActionCodeBase + *PCodePtr);
+ PCodePtr = (int *) (ActionCodeBase + LONG(*PCodePtr));
return SCRIPT_CONTINUE;
}
@@ -1288,7 +1288,7 @@
{
if (Pop() != 0)
{
- PCodePtr = (int *) (ActionCodeBase + *PCodePtr);
+ PCodePtr = (int *) (ActionCodeBase + LONG(*PCodePtr));
}
else
{