hack in Counter.ship to deal with how flushes are done in the interpreter
authorAdam Megacz <adam@megacz.com>
Sat, 22 Aug 2009 21:31:04 +0000 (14:31 -0700)
committerAdam Megacz <adam@megacz.com>
Sat, 22 Aug 2009 21:31:04 +0000 (14:31 -0700)
ships/Counter.ship

index 803105d..05f98a9 100644 (file)
@@ -43,7 +43,10 @@ public void service() {
     if (temp < 0) {
       temp = 0;
       full = false;
-      box_inOp.removeDataForShip();
+
+      // ugly hack due to mishandling of resets
+      if (box_inOp.dataReadyForShip()) box_inOp.removeDataForShip();
+
       if (op_count) box_in2.removeDataForShip();
       else if (op_repeat && op_v1) box_in1.removeDataForShip();
       else if (op_repeat && op_v2) box_in2.removeDataForShip();