- Implicitly set MF2_PASSMOBJ when BounceType is used in an actor definition so that actors under

or above the bouncer can be checked for bouncing.

SVN r3597 (trunk)
This commit is contained in:
Randy Heit 2012-04-26 03:36:01 +00:00
parent 01dacce549
commit 70902d9da8
1 changed files with 5 additions and 0 deletions

View File

@ -951,6 +951,11 @@ DEFINE_PROPERTY(bouncetype, S, Actor)
} }
defaults->BounceFlags &= ~(BOUNCE_TypeMask | BOUNCE_UseSeeSound); defaults->BounceFlags &= ~(BOUNCE_TypeMask | BOUNCE_UseSeeSound);
defaults->BounceFlags |= flags[match]; defaults->BounceFlags |= flags[match];
if (defaults->BounceFlags & (BOUNCE_Actors | BOUNCE_AllActors))
{
// PASSMOBJ is irrelevant for normal missiles, but not for bouncers.
defaults->flags2 |= MF2_PASSMOBJ;
}
} }
//========================================================================== //==========================================================================