mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-24 21:11:39 +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))
|
||||
{
|
||||
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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue