- Fixed: PIT_CheckThing checked AActor::tid instead of TidToHate to determine

whether a monster of the same species can be hurt.
- Added new ice chunk sprites submitted by Enjay.

SVN r223 (trunk)
This commit is contained in:
Christoph Oelckers 2006-06-24 23:58:01 +00:00
commit 7266c1e929
6 changed files with 5 additions and 2 deletions

View file

@ -964,7 +964,7 @@ BOOL PIT_CheckThing (AActor *thing)
if (!thing->IsHostile (tmthing->target))
{
// The same if the shooter hates the target
if (thing->tid == 0 || tmthing->target->tid != thing->tid)
if (thing->tid == 0 || tmthing->target->TIDtoHate != thing->tid)
{
return false;
}
@ -992,7 +992,7 @@ BOOL PIT_CheckThing (AActor *thing)
if (!thing->IsHostile (tmthing->target))
{
// Allow hurting monsters the shooter hates.
if (thing->tid == 0 || tmthing->target->tid != thing->tid)
if (thing->tid == 0 || tmthing->target->TIDtoHate != thing->tid)
{
return false;
}