Horizon operations storage will now spawn cargo correctly.

This commit is contained in:
mikomyazaki
2022-02-19 19:30:27 +00:00
parent 105b513cca
commit 235dca7820
5 changed files with 10 additions and 3 deletions
+2 -2
View File
@@ -121,7 +121,7 @@ var/list/global/random_stock_large = list()
/datum/cargospawner/New()
//First lets get the reference to our warehouse
for(var/areapath in typesof(/area/quartermaster/storage))
for(var/areapath in typesof(current_map.warehouse_basearea))
warehouse = locate(areapath)
if (warehouse)
for (var/turf/simulated/floor/T in warehouse)
@@ -134,7 +134,7 @@ var/list/global/random_stock_large = list()
tables |= B
/datum/cargospawner/proc/start()
if (!warehouse || !warehouseturfs.len)
if (!current_map.warehouse_basearea || !warehouse || !warehouseturfs.len)
admin_notice("<span class='danger'>ERROR: Cargo spawner failed to locate warehouse. Terminating.</span>", R_DEBUG)
qdel(src)
return