Prevents some artifacts spawning mobs within objs. (#10615)

This commit is contained in:
mikomyazaki
2020-11-20 22:43:23 -03:00
committed by GitHub
parent 4143e7682b
commit 21bdd5b97e
4 changed files with 50 additions and 8 deletions
@@ -16,7 +16,8 @@
var/mob/living/silicon/ai/AI = source
if (AI.stat == DEAD)
continue
for(var/turf/t in seen_turfs_in_range(AI, world.view))
for(var/T in seen_turfs_in_range(AI, world.view))
var/turf/t = T
visible[t] = t
else
log_visualnet("Contained an unhandled source", source)
+3 -3
View File
@@ -183,10 +183,10 @@
return
/proc/seen_turfs_in_range(var/source, var/range)
. = list()
var/turf/pos = get_turf(source)
if(pos)
. = hear(range, pos)
else
. = list()
for(var/turf/T in hear(range, pos))
. += T
#undef UPDATE_BUFFER