- Fixed: A_RemoveTracer/Target didn't take flags into account.

This commit is contained in:
MajorCooke 2014-10-02 11:27:22 -05:00
parent 7a6e704af6
commit 3050ea9a6d

View file

@ -5128,11 +5128,13 @@ static void DoRemove(AActor *removetarget, int flags)
// A_RemoveTarget // A_RemoveTarget
// //
//=========================================================================== //===========================================================================
DEFINE_ACTION_FUNCTION(AActor, A_RemoveTarget) DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_RemoveTarget)
{ {
if ((self->target != NULL)) ACTION_PARAM_START(1);
ACTION_PARAM_INT(flags, 0);
if (self->master != NULL)
{ {
P_RemoveThing(self->target); DoRemove(self->target, flags);
} }
} }
@ -5141,11 +5143,13 @@ DEFINE_ACTION_FUNCTION(AActor, A_RemoveTarget)
// A_RemoveTracer // A_RemoveTracer
// //
//=========================================================================== //===========================================================================
DEFINE_ACTION_FUNCTION(AActor, A_RemoveTracer) DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_RemoveTracer)
{ {
if ((self->tracer != NULL)) ACTION_PARAM_START(1);
ACTION_PARAM_INT(flags, 0);
if (self->master != NULL)
{ {
P_RemoveThing(self->tracer); DoRemove(self->tracer, flags);
} }
} }