- Fixed byte swapping the script count for new-style ACS. My 2poly.wad now works on PPC.

SVN r2525 (trunk)
This commit is contained in:
Randy Heit 2010-08-12 22:56:08 +00:00
parent 3cf25ad8e5
commit a27304baac

View file

@ -1427,7 +1427,7 @@ void FBehavior::LoadScriptsDirectory ()
}
else if (*(DWORD *)Data != MAKE_ID('A','C','S',0))
{
NumScripts = scripts.dw[1] / 12;
NumScripts = LittleLong(scripts.dw[1]) / 12;
Scripts = new ScriptPtr[NumScripts];
scripts.dw += 2;
@ -1444,7 +1444,7 @@ void FBehavior::LoadScriptsDirectory ()
}
else
{
NumScripts = scripts.dw[1] / 8;
NumScripts = LittleLong(scripts.dw[1]) / 8;
Scripts = new ScriptPtr[NumScripts];
scripts.dw += 2;