- fixed: A_BFGSpray checked the spray actor's class for MTHRUSPECIES, not the actual shooter.

This commit is contained in:
Christoph Oelckers 2015-06-21 13:04:47 +02:00
parent ffa77ff7a6
commit 85449a6b8a

View file

@ -624,7 +624,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_BFGSpray)
if (spray != NULL)
{
if (spray->flags6 & MF6_MTHRUSPECIES && spray->GetSpecies() == linetarget->GetSpecies())
if (spray->flags6 & MF6_MTHRUSPECIES && self->target->GetSpecies() == linetarget->GetSpecies())
{
spray->Destroy(); // [MC] Remove it because technically, the spray isn't trying to "hit" them.
continue;