From d2c8527213d92a87de92c0e3fcfdc74bd4199541 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 3 Oct 2021 11:15:33 +0200 Subject: [PATCH] ray:: fixed intra in bt --- raycaster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raycaster.cpp b/raycaster.cpp index f985fb65..93f47241 100644 --- a/raycaster.cpp +++ b/raycaster.cpp @@ -353,7 +353,7 @@ void raygen::compute_which_and_dist(int flat1, int flat2) { fmain += " if(which == -1) {\n"; - fmain += "for(int i="+its(flat1)+"; i<"+(prod ? "sides-2" : (WDIM == 2 || is_subcube_based(variation) || intra::in) ? "sides" : its(flat2))+"; i++) {\n"; + fmain += "for(int i="+its(flat1)+"; i<"+(prod ? "sides-2" : ((WDIM == 2 || is_subcube_based(variation) || intra::in) && !bt::in()) ? "sides" : its(flat2))+"; i++) {\n"; fmain += " mediump mat4 m = " + getM("walloffset+i") + ";\n";