Stop inverting lightrays in the wrong places in map::apply_light_arc