From 504eb9e5d15f5fce0158430a0c9195c29e28c7c0 Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 5 Mar 2016 22:54:41 +0200 Subject: [PATCH 1/1] Correctly reset creation time --- koperkapel/gamelib/enemy_generator.py | 1 + 1 file changed, 1 insertion(+) diff --git a/koperkapel/gamelib/enemy_generator.py b/koperkapel/gamelib/enemy_generator.py index 1329660..e8d0108 100644 --- a/koperkapel/gamelib/enemy_generator.py +++ b/koperkapel/gamelib/enemy_generator.py @@ -28,6 +28,7 @@ class EnemyGenerator(Actor): if self._time_since_last_update > self.rate: if len(self._made_enemies) < self.max_enemies: self._make_enemy() + self._time_since_last_update = 0 def _make_enemy(self): if self.enemy_type == 'roach': -- 2.34.1