Make typecache checks twice as fast, stop using single-type typecaches where appropriate (#38075)

This commit is contained in:
vuonojenmustaturska
2018-05-28 16:31:30 -07:00
committed by Tad Hardesty
parent 32fddb078a
commit d335a0fd05
14 changed files with 19 additions and 34 deletions
+2 -1
View File
@@ -21,7 +21,8 @@
restraining = FALSE
/datum/martial_art/cqc/can_use(mob/living/carbon/human/H)
if(just_a_cook && !(is_type_in_typecache(get_area(H), areas_under_siege)))
var/area/A = get_area(H)
if(just_a_cook && !(is_type_in_typecache(A, areas_under_siege)))
return FALSE
return ..()