ShowMap()
var
buf = ""
top = min(y+client.view+6.5, world.maxy)
bottom = max(y-client.view-6.5, 1)
left = max(x-client.view-13, 1)
right = min(x+client.view+13, world.maxx)
for(var/yy = top, yy >= bottom, yy--)
for(var/xx = left, xx <= right, xx++)
var/turf/T = locate(xx,yy,z)
var/obj/Misc/O = locate() in T
var/mob/M = locate() in T
if(M)
buf += M.text
else if(O)
buf += O.text
else if(T)
buf += T.text
buf += "\n"
mb_msgout("\n")
mb_msgout(buf)
mb_msgout("Location: [x],[y]")
mb_msgout("\n")
for(var/mob/M in oview(0))
mb_msgout("[M.name] is here.")
mb_msgout("\n")
Problem description:
I'm not sure how to wrap the map with this code does anyone have an idea on how to i'm not sure on how to approach it.