- fixed: A_CheckProximity could return unmorphed player pawns of currently morphed players.

This commit is contained in:
Christoph Oelckers 2016-02-10 11:58:54 +01:00
parent dde9336235
commit 3e5d1feecd

View file

@ -6485,6 +6485,10 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_CheckProximity)
if (mo == ref) //Don't count self. if (mo == ref) //Don't count self.
continue; continue;
// no unmorphed versions of currently morphed players.
if (mo->flags & MF_UNMORPHED)
continue;
//Check inheritance for the classname. Taken partly from CheckClass DECORATE function. //Check inheritance for the classname. Taken partly from CheckClass DECORATE function.
if (flags & CPXF_ANCESTOR) if (flags & CPXF_ANCESTOR)
{ {