Merge pull request #9933 from Heroman3003/verminfix

Fixes vermin infestation event not working right sometimes
This commit is contained in:
Novacat
2021-03-12 16:04:21 -05:00
committed by Chompstation Bot
parent 6d07636d44
commit 8877d4f4bd

View File

@@ -63,8 +63,14 @@
for(var/areapath in typesof(spawn_area_type))
var/area/A = locate(areapath)
for(var/turf/simulated/floor/F in A.contents)
if(turf_clear(F))
//VOREStation Edit - Fixes event
var/blocked = FALSE
for(var/atom/movable/AM in F)
if(AM.density)
blocked = TRUE
if(!blocked)
turfs += F
//VOREStation Edit - Fixes event
var/list/spawn_types = list()
var/max_number