Don't allow Bob and Teeka to shoot one another.
This commit is contained in:
parent
9270607d6e
commit
e577d7e16f
|
@ -101,14 +101,10 @@ static void touch(Entity *other)
|
||||||
canHit = (
|
canHit = (
|
||||||
other != b->owner &&
|
other != b->owner &&
|
||||||
(!(other->flags & EF_IGNORE_BULLETS)) &&
|
(!(other->flags & EF_IGNORE_BULLETS)) &&
|
||||||
b->owner->type != other->type
|
b->owner->type != other->type &&
|
||||||
|
!((b->owner->type == ET_TEEKA && other->type == ET_BOB) || (b->owner->type == ET_BOB && other->type == ET_TEEKA))
|
||||||
);
|
);
|
||||||
|
|
||||||
if (b->owner->type == ET_TEEKA && other->type == ET_BOB)
|
|
||||||
{
|
|
||||||
canHit = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (canHit)
|
if (canHit)
|
||||||
{
|
{
|
||||||
swapSelf(other);
|
swapSelf(other);
|
||||||
|
|
Loading…
Reference in New Issue