fix for axis aligned raycaster (holes in walls)