P_Thing_Raise fixes & cleanup

- Transfer flags directly into the function and process inside instead of the action functions
- Pass in raiser for all function calls
This commit is contained in:
Major Cooke 2018-11-17 10:44:06 -06:00 committed by Christoph Oelckers
commit a8d4d45e89
4 changed files with 17 additions and 21 deletions

View file

@ -1764,7 +1764,7 @@ FUNC(LS_Thing_Raise)
if (arg0==0)
{
ok = P_Thing_Raise (it,NULL, arg1);
ok = P_Thing_Raise (it, it, arg1);
}
else
{
@ -1772,7 +1772,7 @@ FUNC(LS_Thing_Raise)
while ( (target = iterator.Next ()) )
{
ok |= P_Thing_Raise(target,NULL, arg1);
ok |= P_Thing_Raise(target, target, arg1);
}
}
return ok;