From 09f8aefba7ed11bb52721325bfafd66bf832aaf1 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 9 Oct 2021 15:45:59 +0200 Subject: [PATCH] ray:: reordered just in case --- raycaster.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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)) ); */