From 70902d9da82f13652d1b7575d115d560aa488b26 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Thu, 26 Apr 2012 03:36:01 +0000 Subject: [PATCH] - 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) --- src/thingdef/thingdef_properties.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/thingdef/thingdef_properties.cpp b/src/thingdef/thingdef_properties.cpp index 02490478f..fc987a57d 100644 --- a/src/thingdef/thingdef_properties.cpp +++ b/src/thingdef/thingdef_properties.cpp @@ -951,6 +951,11 @@ DEFINE_PROPERTY(bouncetype, S, Actor) } defaults->BounceFlags &= ~(BOUNCE_TypeMask | BOUNCE_UseSeeSound); 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; + } } //==========================================================================