AmbiguousInOrder ODLint (#20046)

Enabled AmbiguousInOrder OpenDream linting to error out
Fixed ambiguous orders with parenthesis to explicit orders
No player facing changes
This commit is contained in:
Fluffy
2024-10-16 21:14:20 +00:00
committed by GitHub
parent bec05df121
commit a623e22eda
14 changed files with 16 additions and 15 deletions
+1 -1
View File
@@ -105,7 +105,7 @@
return
else
if(owned_capacitor)
if(!(owned_capacitor in range(1, src) && get_dir(owned_capacitor, src) == owned_capacitor.dir && owned_capacitor.anchored))
if(!((owned_capacitor in range(1, src)) && get_dir(owned_capacitor, src) == owned_capacitor.dir && owned_capacitor.anchored))
if(owned_capacitor.owned_gen == src)
owned_capacitor.owned_gen = null
owned_capacitor = null