From 9196224a3228fbfc239455242f85f00ba89bbb8c Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 12 May 2015 13:19:51 +0100 Subject: [PATCH] Added check if more shooters are given --- game.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/game.py b/game.py index bbadee9..f78c2d1 100644 --- a/game.py +++ b/game.py @@ -58,7 +58,8 @@ def generate_targets(player): temp = Target(x=j,y=i, textures=player.options["Textures"]) sprite_list.append(temp) del temp - + if len(sprite_list) > level.firebacks: + level.firebacks = len(sprite_list) for i in range(level.firebacks): changed = False while not changed: