From f9922e3bf1f3400ecbaae21d7e6662e8a411ae3f Mon Sep 17 00:00:00 2001 From: Steve Date: Tue, 10 May 2016 09:59:53 +0100 Subject: [PATCH] Allow mines to be destroyed by any shot. --- src/battle/bullets.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/battle/bullets.c b/src/battle/bullets.c index 0e0684c..57ce049 100644 --- a/src/battle/bullets.c +++ b/src/battle/bullets.c @@ -166,7 +166,7 @@ static void checkCollisions(Bullet *b) if (b->owner != e && e->health > 0 && collision(b->x - b->w / 2, b->y - b->h / 2, b->w, b->h, e->x - e->w / 2, e->y - e->h / 2, e->w, e->h)) { - if (b->owner->side == e->side && !app.gameplay.friendlyFire && (!(e->flags & EF_DISABLED))) + if (b->owner->side == e->side && !app.gameplay.friendlyFire && (!(e->flags & EF_DISABLED)) && e->type != ET_MINE) { b->damage = 0; }