1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-17 18:59:59 +00:00

fixed 20/21 resolution in multi-cell spaces

This commit is contained in:
Zeno Rogue 2021-10-07 23:16:16 +02:00
parent 2b8c19a6f7
commit a04635111c

View File

@ -1248,14 +1248,14 @@ void raygen::emit_iterate(int gid1) {
"if(which == 20) {\n" "if(which == 20) {\n"
" mediump float best = 999.;\n" " mediump float best = 999.;\n"
+w20+ +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" " if(cand < best) { best = cand; which = i; }\n"
" }\n" " }\n"
"}\n" "}\n"
"if(which == 21) {\n" "if(which == 21) {\n"
"mediump float best = 999.;\n" "mediump float best = 999.;\n"
+w21+ +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" " if(cand < best) { best = cand; which = i; }\n"
" }\n" " }\n"
"}\n"; "}\n";