From 2607e40c4a741370dfff237539a9191049d63df8 Mon Sep 17 00:00:00 2001 From: Weird Constructor Date: Sun, 20 Jun 2021 21:33:21 +0200 Subject: [PATCH] make CellDir::C clear all ports --- src/matrix.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/matrix.rs b/src/matrix.rs index 831be4b..10afdaf 100644 --- a/src/matrix.rs +++ b/src/matrix.rs @@ -208,7 +208,14 @@ impl Cell { CellDir::BL => { self.in3 = None; }, CellDir::TL => { self.in2 = None; }, CellDir::T => { self.in1 = None; }, - CellDir::C => {}, + CellDir::C => { + self.out1 = None; + self.out2 = None; + self.out3 = None; + self.in1 = None; + self.in2 = None; + self.in3 = None; + }, } }