From: Adam Megacz Date: Sat, 22 Aug 2009 21:31:04 +0000 (-0700) Subject: hack in Counter.ship to deal with how flushes are done in the interpreter X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=1ae0f50553d88e29615399ea4a1d3279f73c0cda;p=fleet.git hack in Counter.ship to deal with how flushes are done in the interpreter --- 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();