From a04635111cfc1a5c15f8628e99e5f75e81d08e28 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 7 Oct 2021 23:16:16 +0200 Subject: [PATCH] fixed 20/21 resolution in multi-cell spaces --- raycaster.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/raycaster.cpp b/raycaster.cpp index 82950d5f..4f1c3e89 100644 --- a/raycaster.cpp +++ b/raycaster.cpp @@ -1248,14 +1248,14 @@ void raygen::emit_iterate(int gid1) { "if(which == 20) {\n" " mediump float best = 999.;\n" +w20+ - " mediump float cand = "+f_len_prod()+"(" + getM("i") + " * position);\n" + " mediump float cand = "+f_len_prod()+"(" + getM("walloffset+i") + " * position);\n" " if(cand < best) { best = cand; which = i; }\n" " }\n" "}\n" "if(which == 21) {\n" "mediump float best = 999.;\n" +w21+ - " mediump float cand = "+f_len_prod()+"(" + getM("i") + " * position);\n" + " mediump float cand = "+f_len_prod()+"(" + getM("walloffset+i") + " * position);\n" " if(cand < best) { best = cand; which = i; }\n" " }\n" "}\n";