Extra support for bussed/lateloaded holodeck maps.

This commit is contained in:
Ghommie
2020-04-18 03:15:05 +02:00
parent 523672b6a5
commit ac662a46c1
2 changed files with 15 additions and 4 deletions
+10
View File
@@ -13,6 +13,16 @@
Asserts are to avoid the inevitable infinite loops
*/
/area/holodeck/Initialize()
. = ..()
var/list/update_holodeck_cache = SSholodeck?.rejected_areas[type]
if(update_holodeck_cache)
var/list/info_this = list("name" = name, "type" = type)
var/list/target = restricted ? SSholodeck.emag_program_cache : SSholodeck.program_cache
for(var/A in update_holodeck_cache)
LAZYADD(target[A], info_this)
SSholodeck.rejected_areas -= type
/area/holodeck/powered(var/chan)
if(!requires_power)
return 1