Bob's laser should ignore Teeka.
This commit is contained in:
parent
14dbe2b39c
commit
55b163873d
|
@ -48,14 +48,21 @@ static void tick(void)
|
|||
static void touch(Entity *other)
|
||||
{
|
||||
Bullet *b;
|
||||
int canHit;
|
||||
|
||||
b = (Bullet*)self;
|
||||
|
||||
if (b->alive == ALIVE_ALIVE)
|
||||
{
|
||||
if (other != b->owner)
|
||||
{
|
||||
if (other != NULL && (!(other->flags & EF_IGNORE_BULLETS)) && b->owner->type != other->type)
|
||||
canHit = (
|
||||
other != NULL &&
|
||||
other != b->owner &&
|
||||
(!(other->flags & EF_IGNORE_BULLETS)) &&
|
||||
b->owner->type != other->type &&
|
||||
!((b->owner->type == ET_TEEKA && other->type == ET_BOB) || (b->owner->type == ET_BOB && other->type == ET_TEEKA))
|
||||
);
|
||||
|
||||
if (canHit)
|
||||
{
|
||||
if (other->flags & EF_EXPLODES)
|
||||
{
|
||||
|
@ -86,5 +93,4 @@ static void touch(Entity *other)
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue