mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 23:01:59 +00:00
- Fixed: A_RemoveSiblings and A_KillSiblings did not check that the caller had a master to deduce siblings from.
SVN r4237 (trunk)
This commit is contained in:
parent
f7aa019f85
commit
5dc034c2ed
1 changed files with 12 additions and 6 deletions
|
@ -3780,6 +3780,8 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_RemoveSiblings)
|
||||||
ACTION_PARAM_START(1);
|
ACTION_PARAM_START(1);
|
||||||
ACTION_PARAM_BOOL(removeall,0);
|
ACTION_PARAM_BOOL(removeall,0);
|
||||||
|
|
||||||
|
if (self->master != NULL)
|
||||||
|
{
|
||||||
while ((mo = it.Next()) != NULL)
|
while ((mo = it.Next()) != NULL)
|
||||||
{
|
{
|
||||||
if (mo->master == self->master && mo != self && (mo->health <= 0 || removeall))
|
if (mo->master == self->master && mo != self && (mo->health <= 0 || removeall))
|
||||||
|
@ -3788,6 +3790,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_RemoveSiblings)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//
|
//
|
||||||
|
@ -3831,6 +3834,8 @@ DEFINE_ACTION_FUNCTION(AActor, A_RaiseSiblings)
|
||||||
TThinkerIterator<AActor> it;
|
TThinkerIterator<AActor> it;
|
||||||
AActor *mo;
|
AActor *mo;
|
||||||
|
|
||||||
|
if (self->master != NULL)
|
||||||
|
{
|
||||||
while ((mo = it.Next()) != NULL)
|
while ((mo = it.Next()) != NULL)
|
||||||
{
|
{
|
||||||
if (mo->master == self->master && mo != self)
|
if (mo->master == self->master && mo != self)
|
||||||
|
@ -3839,6 +3844,7 @@ DEFINE_ACTION_FUNCTION(AActor, A_RaiseSiblings)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue