Skip to content

Commit

Permalink
fixed some connection highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
mkhan45 committed Apr 11, 2021
1 parent d30c8fb commit bea5b01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified docs/simple_electronics.wasm
Binary file not shown.
4 changes: 2 additions & 2 deletions src/systems/draw_systems.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ where
sp.x,
ep.y,
5.0,
if wire.input_state && delta >= vert_dist.abs() / total_dist {
if delta >= vert_dist.abs() / total_dist {
new_col
} else {
old_col
Expand Down Expand Up @@ -199,7 +199,7 @@ where
ep.x,
sp.y,
5.0,
if delta >= 1.0 { new_col } else { old_col },
if delta >= 0.9 { new_col } else { old_col },
);
} else {
draw_line(
Expand Down

0 comments on commit bea5b01

Please sign in to comment.