Fixed a bug where enemies were taking hits from the player if bullet was too high.

This commit is contained in:
JustinOros
2025-11-17 17:59:40 -07:00
parent d1eeeaf13c
commit 03d3ebde55
+1 -1
View File
@@ -437,7 +437,7 @@ while running:
keep=False
else:
for e in enemies[:]:
if abs(b[0]-e['pos'][0])<2 and abs(b[2]-e['pos'][2])<2:
if abs(b[0]-e['pos'][0])<2 and abs(b[2]-e['pos'][2])<2 and abs(b[1]-1)<2:
enemies.remove(e)
total_enemies-=1
sound_explosion.set_volume(0.5)