From 6bd43ed2ada6a3f578bd11c075def1996372a074 Mon Sep 17 00:00:00 2001 From: Geoffrey Frogeye Date: Sat, 13 Feb 2016 17:24:47 +0100 Subject: [PATCH] Let everyone finish their tasks --- reborn.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/reborn.py b/reborn.py index 3a75517..8032b52 100755 --- a/reborn.py +++ b/reborn.py @@ -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()