Fix logic typo

This commit is contained in:
Eren Dogan
2023-07-30 10:08:57 -07:00
parent d487f788e3
commit e5bc7b4e95
+1 -1
View File
@@ -140,7 +140,7 @@ class graph:
if xdiff == 0 and ydiff == 0:
if pin_safe and blockage in [self.source, self.target]:
return False
elif xdiff < spacing and ydiff < spacing:
elif xdiff < spacing or ydiff < spacing:
blocked = False
else:
blocked = True