mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-27 22:42:29 +00:00
- Fixed: P_TestMobjZ() needs THRUSPECIES and THRUACTORS checks, too.
SVN r1768 (trunk)
This commit is contained in:
parent
da33f333a1
commit
2a9351fa61
2 changed files with 9 additions and 0 deletions
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue