1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 14:37:16 +00:00

split btrange to btrange and btrange_cosh

This commit is contained in:
? 2019-02-22 21:09:02 +01:00 committed by Zeno Rogue
parent 695d29475a
commit 5212be555e

View File

@ -271,7 +271,7 @@ namespace binary {
return hr::parabolic13(y * co, z * co); return hr::parabolic13(y * co, z * co);
} }
ld btrange = 20; ld btrange = 3, btrange_cosh;
void draw() { void draw() {
dq::visited.clear(); dq::visited.clear();
@ -291,7 +291,7 @@ namespace binary {
if(!do_draw(c, V)) continue; if(!do_draw(c, V)) continue;
#endif #endif
#if DIM==3 #if DIM==3
if(V[DIM][DIM] > btrange) continue; if(V[DIM][DIM] > btrange_cosh) continue;
setdist(c, 7, c); setdist(c, 7, c);
#endif #endif
drawcell(c, V, 0, false); drawcell(c, V, 0, false);
@ -354,7 +354,7 @@ auto bt_config = addHook(hooks_args, 0, [] () {
return 0; return 0;
} }
else if(argis("-btrange")) { else if(argis("-btrange")) {
shift_arg_formula(btrange); shift_arg_formula(btrange, delayed_geo_reset);
return 0; return 0;
} }
return 1; return 1;