mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-26 13:39:16 +01:00
Hotfixes the infinite reach (#17166)
This commit is contained in:
@@ -717,13 +717,13 @@
|
||||
|
||||
while (cur_atom && !(cur_atom in container.contents))
|
||||
if (isarea(cur_atom))
|
||||
return -1
|
||||
return INFINITY
|
||||
if (istype(cur_atom.loc, /obj/item/storage))
|
||||
depth++
|
||||
cur_atom = cur_atom.loc
|
||||
|
||||
if (!cur_atom)
|
||||
return -1 //inside something with a null loc.
|
||||
return INFINITY //inside something with a null loc.
|
||||
|
||||
return depth
|
||||
|
||||
@@ -735,13 +735,13 @@
|
||||
|
||||
while (cur_atom && !isturf(cur_atom))
|
||||
if (isarea(cur_atom))
|
||||
return -1
|
||||
return INFINITY
|
||||
if (istype(cur_atom.loc, /obj/item/storage))
|
||||
depth++
|
||||
cur_atom = cur_atom.loc
|
||||
|
||||
if (!cur_atom)
|
||||
return -1 //inside something with a null loc.
|
||||
return INFINITY //inside something with a null loc.
|
||||
|
||||
return depth
|
||||
|
||||
|
||||
Reference in New Issue
Block a user