Commit acf6424e authored by Pablo R. Mier's avatar Pablo R. Mier

Merge remote-tracking branch 'origin/master'

parents 2ce9bc6b 1183a0d8
Pipeline #584 skipped
......@@ -92,8 +92,9 @@ class InvadersGame(sge.dsp.Game):
if self.anim_sleep is None:
#The animation time is adjusted according to the number of new
#individuals.
self.anim_sleep = (0 if len(self.pairs) > 50
else min(1.0, 3.0/len(self.pairs)))
self.anim_sleep = (1.0 if len(self.pairs) == 0
else 0 if len(self.pairs) > 50
else min(1.0, 3.0/len(self.pairs)))
else:
time.sleep(self.anim_sleep)
elif self.pairs is not None:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment