- Fixed: P_TestMobjZ() needs THRUSPECIES and THRUACTORS checks, too.

SVN r1768 (trunk)
This commit is contained in:
Randy Heit 2009-08-11 01:03:58 +00:00
parent da33f333a1
commit 2a9351fa61
2 changed files with 9 additions and 0 deletions

View File

@ -1,4 +1,5 @@
August 10, 2009
- Fixed: P_TestMobjZ() needs THRUSPECIES and THRUACTORS checks, too.
- Fixed: The UDMF loader did not initialize the sectors' sectornum property.
August 10, 2009 (Changes by Graf Zahl)

View File

@ -1385,6 +1385,14 @@ bool P_TestMobjZ (AActor *actor, bool quick, AActor **pOnmobj)
{
continue;
}
if ((actor->flags2 | thing->flags2) & MF2_THRUACTORS)
{
continue;
}
if ((actor->flags6 & MF6_THRUSPECIES) && (thing->GetSpecies() == actor->GetSpecies()))
{
continue;
}
if (!(thing->flags & MF_SOLID))
{ // Can't hit thing
continue;