Fix for mob spawners: take 2

Fixes away map mob spawners respawning their mobs when there's a player mob in view.
This commit is contained in:
Verkister
2020-11-08 09:09:51 +02:00
committed by GitHub
parent f2528d5066
commit c2ffffeb09
+3 -2
View File
@@ -456,8 +456,9 @@
if(my_mob && my_mob.stat != DEAD)
return //No need
if(LAZYLEN(loc.human_mobs(world.view)))
return //I'll wait.
for(var/mob/living/L in view(src,world.view))
if(L.client)
return //I'll wait.
if(prob(prob_spawn))
prob_spawn -= prob_fall