mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-20 06:03:01 +00:00
fixed 20/21 resolution in multi-cell spaces
This commit is contained in:
parent
2b8c19a6f7
commit
a04635111c
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user