Correctly reset creation time
authorNeil <neil@dip.sun.ac.za>
Sat, 5 Mar 2016 20:54:41 +0000 (22:54 +0200)
committerNeil <neil@dip.sun.ac.za>
Sat, 5 Mar 2016 21:18:39 +0000 (23:18 +0200)
koperkapel/gamelib/enemy_generator.py

index 1329660b1881140768f557e2912c5e0305a018ee..e8d01082f3aebaf5d35dc0519f05249650016faf 100644 (file)
@@ -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':