Merge pull request #38683 from AnturK/anomalyfix

Fixes anomaly area selection.
This commit is contained in:
Jordan Brown
2018-06-25 09:18:40 -05:00
committed by letterjay
parent dd03c3e104
commit 888b04427c
3 changed files with 29 additions and 27 deletions
+5
View File
@@ -488,6 +488,11 @@
for(var/key in key_list)
. |= key_list[key]
/proc/make_associative(list/flat_list)
. = list()
for(var/thing in flat_list)
.[thing] = TRUE
//Picks from the list, with some safeties, and returns the "default" arg if it fails
#define DEFAULTPICK(L, default) ((islist(L) && length(L)) ? pick(L) : default)