InterpreterShip: fix bug that caused ships with no input docks to not be serviced
authorAdam Megacz <adam@megacz.com>
Sat, 22 Aug 2009 21:34:14 +0000 (14:34 -0700)
committerAdam Megacz <adam@megacz.com>
Sat, 22 Aug 2009 21:34:14 +0000 (14:34 -0700)
src/edu/berkeley/fleet/interpreter/InterpreterShip.java

index 033b33b..811c02b 100644 (file)
@@ -40,7 +40,7 @@ abstract class InterpreterShip extends FleetTwoShip {
             else allflushing = false;
             if (!d.flushing && !d.dataReadyForShip) someempty = true;
         }
-        if (allflushing) {
+        if (allflushing && someflushing) {
             for(InterpreterDock d : docks.values())
                 if (d.isInputDock())
                     d.flushing = false;