ThalesGroup/kessler-game

BUG: Ship 1 shields ship 2 from mine blast

Closed this issue · 0 comments

In the collision check loop, if the first ship collides with the mine, it breaks out of the for loop, so the second ship doesn't get checked for collisions with the mine. The result is that if two ships are caught in the blast of a mine, ship 1 will take damage while ship 2 does not take damage, which is unexpected behavior and an unfair advantage for ship 2.

The fix is to remove the break statement

image