mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-13 16:13:19 +01:00
@@ -1234,21 +1234,12 @@ proc/get_mob_with_client_list()
|
||||
else return zone
|
||||
|
||||
|
||||
/proc/get_turf(const/atom/O)
|
||||
if (isnull(O) || isarea(O))
|
||||
return
|
||||
|
||||
var/atom/A = O
|
||||
|
||||
for (var/i = 0, ++i <= 20)
|
||||
if (isturf(A))
|
||||
return A
|
||||
|
||||
switch (istype(A))
|
||||
if (1)
|
||||
A = A.loc
|
||||
if (0)
|
||||
return
|
||||
/proc/get_turf(turf/location)
|
||||
while(location)
|
||||
if(isturf(location))
|
||||
return location
|
||||
location = location.loc
|
||||
return null
|
||||
|
||||
/proc/get(atom/loc, type)
|
||||
while(loc)
|
||||
@@ -1630,4 +1621,4 @@ atom/proc/GetTypeInAllContents(typepath)
|
||||
|
||||
processed |= A
|
||||
|
||||
return found
|
||||
return found
|
||||
Reference in New Issue
Block a user