break if no free spawn position found

pull/13/head
Sascha 2024-06-21 16:41:06 +07:00
parent cf321f2bb0
commit aa900e0c42
1 changed files with 1 additions and 0 deletions

@ -21,6 +21,7 @@ func enough_enemies() -> void:
foundSpawnPoint = true
enemy_count += 1
spawn_new_enemy(spawn_point)
break
if foundSpawnPoint:
enough_enemies()
else: