Merge branch 'master' into asmjit
# Conflicts: # src/p_actionfunctions.cpp
This commit is contained in:
commit
8bc2d50ad2
6 changed files with 29 additions and 28 deletions
|
|
@ -4503,13 +4503,6 @@ DEFINE_ACTION_FUNCTION(AActor, A_ChangeCountFlags)
|
|||
return 0;
|
||||
}
|
||||
|
||||
|
||||
enum ERaise
|
||||
{
|
||||
RF_TRANSFERFRIENDLINESS = 1,
|
||||
RF_NOCHECKPOSITION = 2
|
||||
};
|
||||
|
||||
//===========================================================================
|
||||
//
|
||||
// A_RaiseMaster
|
||||
|
|
@ -4520,10 +4513,9 @@ DEFINE_ACTION_FUNCTION(AActor, A_RaiseMaster)
|
|||
PARAM_SELF_PROLOGUE(AActor);
|
||||
PARAM_INT(flags);
|
||||
|
||||
bool copy = !!(flags & RF_TRANSFERFRIENDLINESS);
|
||||
if (self->master != NULL)
|
||||
{
|
||||
P_Thing_Raise(self->master, copy ? self : NULL, (flags & RF_NOCHECKPOSITION));
|
||||
P_Thing_Raise(self->master, self, flags);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -4541,12 +4533,11 @@ DEFINE_ACTION_FUNCTION(AActor, A_RaiseChildren)
|
|||
TThinkerIterator<AActor> it;
|
||||
AActor *mo;
|
||||
|
||||
bool copy = !!(flags & RF_TRANSFERFRIENDLINESS);
|
||||
while ((mo = it.Next()) != NULL)
|
||||
{
|
||||
if (mo->master == self)
|
||||
{
|
||||
P_Thing_Raise(mo, copy ? self : NULL, (flags & RF_NOCHECKPOSITION));
|
||||
P_Thing_Raise(mo, self, flags);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
|
|
@ -4565,14 +4556,13 @@ DEFINE_ACTION_FUNCTION(AActor, A_RaiseSiblings)
|
|||
TThinkerIterator<AActor> it;
|
||||
AActor *mo;
|
||||
|
||||
bool copy = !!(flags & RF_TRANSFERFRIENDLINESS);
|
||||
if (self->master != NULL)
|
||||
{
|
||||
while ((mo = it.Next()) != NULL)
|
||||
{
|
||||
if (mo->master == self->master && mo != self)
|
||||
{
|
||||
P_Thing_Raise(mo, copy ? self : NULL, (flags & RF_NOCHECKPOSITION));
|
||||
P_Thing_Raise(mo, self, flags);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -4588,7 +4578,7 @@ DEFINE_ACTION_FUNCTION(AActor, A_RaiseSelf)
|
|||
{
|
||||
PARAM_SELF_PROLOGUE(AActor);
|
||||
PARAM_INT(flags);
|
||||
ACTION_RETURN_BOOL(P_Thing_Raise(self, NULL, (flags & RF_NOCHECKPOSITION)));
|
||||
ACTION_RETURN_BOOL(P_Thing_Raise(self, self, flags));
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
|
|
@ -4602,7 +4592,7 @@ DEFINE_ACTION_FUNCTION(AActor, RaiseActor)
|
|||
PARAM_SELF_PROLOGUE(AActor);
|
||||
PARAM_OBJECT(other, AActor);
|
||||
PARAM_INT(flags);
|
||||
ACTION_RETURN_BOOL(P_Thing_Raise(other, self, (flags & RF_NOCHECKPOSITION)));
|
||||
ACTION_RETURN_BOOL(P_Thing_Raise(other, self, flags));
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue