Let everyone finish their tasks

This commit is contained in:
Geoffrey Frogeye 2016-02-13 17:24:47 +01:00
parent d3039918ea
commit 6bd43ed2ad

View file

@ -352,6 +352,10 @@ try:
newTurn()
if not DEBUG:
bar.update(turn)
while turn < SIMULATION and [d for d in Drone.ALL if d.tasks]:
newTurn()
if not DEBUG:
bar.update(turn)
if not DEBUG:
bar.finish()