diff --git a/raycaster.cpp b/raycaster.cpp index b307f13c..6eb17fc9 100644 --- a/raycaster.cpp +++ b/raycaster.cpp @@ -2196,14 +2196,18 @@ struct raycast_map { forCellIdCM(c2, d, c) { // if(reflect_val == 0 && !((1<tcw.at; + if(p) { + cell *c3 = p->tcw.at; + if(rays_generate && c3->mpdist > 7) { intra::may_switch_to(c3); setdist(c3, 7, c); intra::may_switch_to(c2); } + cl.add(c3); + } } - if(intra::in && !intra::intra_id.count(c2)) intra::intra_id[c2] = intra::current; - if(rays_generate) setdist(c2, 7, c); /* if(!cl.listed(c2)) legaldir.push_back(legaldir[i] &~ (1<<((d+3)%6)) ); */