From: Neil Date: Sat, 5 Mar 2016 20:54:41 +0000 (+0200) Subject: Correctly reset creation time X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;ds=sidebyside;h=504eb9e5d15f5fce0158430a0c9195c29e28c7c0;hp=c1691479e387f6676f03dbf6e431345eea60dd65;p=koperkapel.git Correctly reset creation time --- 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':