diff --git a/units/bomb.py b/units/bomb.py index 8293858..de884fc 100644 --- a/units/bomb.py +++ b/units/bomb.py @@ -169,9 +169,6 @@ class Explosion(Bomb): x_pos = self.position_before[0] * self.game.cell_size + (self.game.cell_size - image_size[0]) // 2 + partial_x y_pos = self.position_before[1] * self.game.cell_size + (self.game.cell_size - image_size[1]) // 2 + partial_y - if self.is_hidden_in_tunnel(image_size): - return - self.game.render_engine.draw_image(x_pos, y_pos, image, anchor="nw", tag="unit") diff --git a/units/gas.py b/units/gas.py index 30fa018..5530cb5 100644 --- a/units/gas.py +++ b/units/gas.py @@ -75,10 +75,8 @@ class Gas(Unit): x_pos = self.position_before[0] * self.game.cell_size + (self.game.cell_size - image_size[0]) // 2 + partial_x y_pos = self.position_before[1] * self.game.cell_size + (self.game.cell_size - image_size[1]) // 2 + partial_y - if not self.is_hidden_in_tunnel(image_size): - self.game.render_engine.draw_image(x_pos, y_pos, image, anchor="nw", tag="unit") + self.game.render_engine.draw_image(x_pos, y_pos, image, anchor="nw", tag="unit") for cell in self.spreading_cells: x_pos = cell[0] * self.game.cell_size + (self.game.cell_size - image_size[0]) // 2 + partial_x y_pos = cell[1] * self.game.cell_size + (self.game.cell_size - image_size[1]) // 2 + partial_y - if not self.is_hidden_in_tunnel(image_size, position=cell): - self.game.render_engine.draw_image(x_pos, y_pos, image, anchor="nw", tag="unit") + self.game.render_engine.draw_image(x_pos, y_pos, image, anchor="nw", tag="unit")