- added Firebrand's patch to rename 'swap' due to naming conflicts in newer MSVC compilers.
SVN r2449 (trunk)
This commit is contained in:
parent
4ac64b6df7
commit
545a892faa
28 changed files with 50 additions and 50 deletions
|
|
@ -1487,7 +1487,7 @@ void FBehavior::LoadScriptsDirectory ()
|
|||
// Make the closed version the first one.
|
||||
if (Scripts[i+1].Type == SCRIPT_Closed)
|
||||
{
|
||||
swap(Scripts[i], Scripts[i+1]);
|
||||
swapvalues(Scripts[i], Scripts[i+1]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -2051,7 +2051,7 @@ int DLevelScript::Random (int min, int max)
|
|||
{
|
||||
if (max < min)
|
||||
{
|
||||
swap (max, min);
|
||||
swapvalues (max, min);
|
||||
}
|
||||
|
||||
return min + pr_acs(max - min + 1);
|
||||
|
|
@ -3550,7 +3550,7 @@ int DLevelScript::RunScript ()
|
|||
break;
|
||||
|
||||
case PCD_SWAP:
|
||||
swap(Stack[sp-2], Stack[sp-1]);
|
||||
swapvalues(Stack[sp-2], Stack[sp-1]);
|
||||
break;
|
||||
|
||||
case PCD_LSPEC1:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue