Fixes carp attacking mechs over z-levels

Fixes #9198.
This commit is contained in:
GinjaNinja32
2015-05-12 15:53:28 +01:00
parent 009dc181b2
commit c952507f3c

View File

@@ -115,7 +115,7 @@
var/list/L = hearers(src, dist)
for (var/obj/mecha/M in mechas_list)
if (get_dist(src, M) <= dist)
if (M.z == src.z && get_dist(src, M) <= dist)
L += M
return L