From 1ae0f50553d88e29615399ea4a1d3279f73c0cda Mon Sep 17 00:00:00 2001 From: Adam Megacz Date: Sat, 22 Aug 2009 14:31:04 -0700 Subject: [PATCH] hack in Counter.ship to deal with how flushes are done in the interpreter --- ships/Counter.ship | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ships/Counter.ship b/ships/Counter.ship index 803105d..05f98a9 100644 --- a/ships/Counter.ship +++ b/ships/Counter.ship @@ -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(); -- 1.7.10.4