mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-02-07 07:21:01 +00:00
- 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:
parent
3cf25ad8e5
commit
a27304baac
1 changed files with 2 additions and 2 deletions
|
@ -1427,7 +1427,7 @@ void FBehavior::LoadScriptsDirectory ()
|
||||||
}
|
}
|
||||||
else if (*(DWORD *)Data != MAKE_ID('A','C','S',0))
|
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 = new ScriptPtr[NumScripts];
|
||||||
scripts.dw += 2;
|
scripts.dw += 2;
|
||||||
|
|
||||||
|
@ -1444,7 +1444,7 @@ void FBehavior::LoadScriptsDirectory ()
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
NumScripts = scripts.dw[1] / 8;
|
NumScripts = LittleLong(scripts.dw[1]) / 8;
|
||||||
Scripts = new ScriptPtr[NumScripts];
|
Scripts = new ScriptPtr[NumScripts];
|
||||||
scripts.dw += 2;
|
scripts.dw += 2;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue