fix Lut3 so it checks if output is empty
authoradam <adam@megacz.com>
Fri, 10 Aug 2007 13:16:42 +0000 (14:16 +0100)
committeradam <adam@megacz.com>
Fri, 10 Aug 2007 13:16:42 +0000 (14:16 +0100)
ships/Lut3.ship

index c6f39cf..5b9479e 100644 (file)
@@ -43,7 +43,8 @@ under input {\tt in3}.
       if (box_in1.dataReadyForShip() &&
           box_in2.dataReadyForShip() &&
           box_in3.dataReadyForShip() &&
-          box_inLut.dataReadyForShip()) {
+          box_inLut.dataReadyForShip() &&
+          box_out.readyForDataFromShip()) {
           long a      = box_in1.removeDataForShip();
           long b      = box_in2.removeDataForShip();
           long c      = box_in3.removeDataForShip();