Fix crashes when LOS went out of bounds

LOS was not respecting map boundaries, and was
relying on the fact that classic maps were surrounded
by walls.