diff options
author | Daniel Jones <admin@danieljon.es> | 2020-06-24 15:25:12 +0930 |
---|---|---|
committer | Daniel Jones <admin@danieljon.es> | 2020-06-24 15:25:12 +0930 |
commit | 08ffc71b3b219c169af385ed9c47fae6535dcd67 (patch) | |
tree | 96d96919e5be79356496fff4ea2f479c52632ca2 /Gate.cpp | |
parent | b7d79a8224a578ab5868eb2733bdf4a50db5e4f2 (diff) | |
download | foxlogicgates-08ffc71b3b219c169af385ed9c47fae6535dcd67.tar.gz foxlogicgates-08ffc71b3b219c169af385ed9c47fae6535dcd67.zip |
functionality: added ability to delete links. click on the input of the link you wish to delete and press the delete key.
Diffstat (limited to 'Gate.cpp')
-rw-r--r-- | Gate.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -40,7 +40,9 @@ Gate::remove_output_gate_id(int id) { if (id == (*g)) { + printf("%id = %d\n", id, *g); output_gate_ids.erase(output_gate_ids.begin() + pos); + break; } pos++; } @@ -63,7 +65,7 @@ void Gate::update_state() { this->output_state = true; } - else if (input_gate1) + else { this->output_state = false; } |