ID:179431
 
I have a problem with this little bit of code:
var/turf/start_location = locate(/area/start)
src.Move(start_location)

The problem with this is that it always picks the same exact location, even if /area/start is 100 tiles. That way, if someone is on this one tile, and someone tries to log on, they get a black screen since they can't move to the one location. My question is, is there any way to make it so that if tile A in the area is occupied by someone, you move to tile B in the area, and so on?

Here is what I have now:
var/turf/start_location = locate(/area/start)
src.density = 0
src.Move(start_location)
src.density = 1

I really dislike this way, since I think it might cause a few bugs somewhere.

[edit] Never mind, I figured it out.
For future reference, don't edit, DELETE!