mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 13:11:33 +00:00
- fixed: A_CheckProximity could return unmorphed player pawns of currently morphed players.
This commit is contained in:
parent
dde9336235
commit
3e5d1feecd
1 changed files with 4 additions and 0 deletions
|
@ -6485,6 +6485,10 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_CheckProximity)
|
|||
if (mo == ref) //Don't count self.
|
||||
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.
|
||||
if (flags & CPXF_ANCESTOR)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue