Commit 332ea125 authored by Jorn W. Janneck's avatar Jorn W. Janneck

Fixed bug in lib/sections-by-friendlies and ...-hostiles

parent ef3d131f
......@@ -251,14 +251,14 @@
"sorts the sections by the number of hostiles in them, ascending"
[dirs env species]
(sort-by #(count (hostiles (Env-Sections %))) dirs)
(sort-by #(count (hostiles species (Env-Sections %) env)) dirs)
)
(defn sections-by-friendlies
"sorts the sections by the number of friendlies in them, ascending"
[dirs env species]
(sort-by #(count (friendlies (Env-Sections %))) dirs)
(sort-by #(count (friendlies species (Env-Sections %) env)) dirs)
)
(defn sections-by-fuel
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment