1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-17 11:38:05 +00:00

3D:: sightranges are now configurable

This commit is contained in:
?
2019-02-25 17:21:53 +01:00
committed by Zeno Rogue
parent 46250081ec
commit fb71d4fd15
6 changed files with 35 additions and 21 deletions

View File

@@ -211,7 +211,6 @@ namespace binary {
direct_tmatrix[7] = parabolic3(0, +2);
for(int i=0; i<8; i++)
inverse_tmatrix[i] = inverse(direct_tmatrix[i]);
btrange_cosh = cosh(btrange);
}
const transmatrix& tmatrix(heptagon *h, int dir) {
@@ -265,8 +264,6 @@ namespace binary {
return hr::parabolic13(y * co, z * co);
}
ld btrange = 3, btrange_cosh;
void draw() {
dq::visited.clear();
dq::enqueue(viewctr.at, cview());
@@ -342,10 +339,6 @@ auto bt_config = addHook(hooks_args, 0, [] () {
shift_arg_formula(vid.binary_width, delayed_geo_reset);
return 0;
}
else if(argis("-btrange")) {
shift_arg_formula(btrange, delayed_geo_reset);
return 0;
}
return 1;
});
#endif