ID:1284664
 
if(location.density)
var/turf/destiny = get_step(location,direction)
if(destiny.density)
return 0


What the hell is wrong with me?
if(!get_step_to(location,direction)) return 0


Life, solved.
I have better ways of torturing myself.

Such as being a Wikipedia editor.
Those content disputes get...ugh.
In response to Nadrew
Nadrew wrote:
> if(!get_step_to(location,direction)) return 0
>

Life, solved.

hah...well I was referring to the fact that destiny.density is hard to read/type, but thanks for pointing that out :D
Java can be supreme for this, mainly in naive implementations of the library example.

public class Books {
private List<Book> books = new ArrayList<Book>():

public Book getBook(int index) {
Book book = books.get(index);
if (book == null) {
throw new NoSuchElementException();
}
return book;
}
}