From fb94f90326599a81191ccd5757502f9e58f6ba6f Mon Sep 17 00:00:00 2001 From: zenoamaro Date: Sun, 30 Jun 2019 16:35:30 +0200 Subject: [PATCH] Fix collisions with dead tanks --- src/main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.js b/src/main.js index 6135e53..ba36a4c 100644 --- a/src/main.js +++ b/src/main.js @@ -337,6 +337,7 @@ function updateParticles() { function isTank(x, y) { for (let player of players) { + if (player.dead) continue; if (within(x, y, player.x, player.y, PLAYER_TANK_BOUNDING_RADIUS)) { return true; }