diff options
author | Simon Howard | 2008-12-02 18:58:45 +0000 |
---|---|---|
committer | Simon Howard | 2008-12-02 18:58:45 +0000 |
commit | a55ed79bc31af362885c9e92b5a3e7e5129f0045 (patch) | |
tree | 53e99deb551bb67dadec1b8acfe1063aaf5b1d0e /src | |
parent | e3a806cc094848794d6115914eeb8bf0e0ae1b2a (diff) | |
download | chocolate-doom-a55ed79bc31af362885c9e92b5a3e7e5129f0045.tar.gz chocolate-doom-a55ed79bc31af362885c9e92b5a3e7e5129f0045.tar.bz2 chocolate-doom-a55ed79bc31af362885c9e92b5a3e7e5129f0045.zip |
Fix endianness bug with Hexen ACS code.
Subversion-branch: /branches/raven-branch
Subversion-revision: 1400
Diffstat (limited to 'src')
-rw-r--r-- | src/hexen/p_acs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hexen/p_acs.c b/src/hexen/p_acs.c index f49f2840..618bbd05 100644 --- a/src/hexen/p_acs.c +++ b/src/hexen/p_acs.c @@ -1280,7 +1280,7 @@ static int CmdDecWorldVar(void) static int CmdGoto(void) { - PCodePtr = (int *) (ActionCodeBase + *PCodePtr); + PCodePtr = (int *) (ActionCodeBase + LONG(*PCodePtr)); return SCRIPT_CONTINUE; } @@ -1288,7 +1288,7 @@ static int CmdIfGoto(void) { if (Pop() != 0) { - PCodePtr = (int *) (ActionCodeBase + *PCodePtr); + PCodePtr = (int *) (ActionCodeBase + LONG(*PCodePtr)); } else { |