Adds subtypesof(). It's shorthand for typesof(path) - path.

Replaces typesof(path) - path with subtypesof(path) in obvious places. I was a bit conservative, there's probably a few more places that could use this.
This commit is contained in:
Incoming
2015-11-16 18:55:57 -05:00
parent 99afc61297
commit 1f9f0dfc40
45 changed files with 72 additions and 79 deletions
+1 -1
View File
@@ -69,7 +69,7 @@
/obj/machinery/computer/holodeck/initialize()
program_cache = list()
emag_programs = list()
for(var/typekey in typesof(program_type) - program_type)
for(var/typekey in subtypesof(program_type))
var/area/holodeck/A = locate(typekey)
if(!A || A == offline_program) continue
if(A.contents.len == 0) continue // not loaded