Revert "Refactor get_turf proc."

This reverts commit 5344e12b25.
This commit is contained in:
ZomgPonies
2014-05-27 20:53:56 -04:00
parent 15713c5cf6
commit c25b41ca5f
+7 -16
View File
@@ -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