Convert LOS to raycasting (fixes #163)