1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-21 08:00:25 +00:00

fixup adjust to 3D

This commit is contained in:
? 2019-02-22 21:06:33 +01:00 committed by Zeno Rogue
parent cf34b90373
commit 695d29475a

View File

@ -262,16 +262,14 @@ namespace binary {
} }
#endif #endif
#if DIM==2
transmatrix parabolic(ld u) { transmatrix parabolic(ld u) {
return parabolic1(u * vid.binary_width / log(2) / 2); return parabolic1(u * vid.binary_width / log(2) / 2);
} }
#else
transmatrix parabolic(ld y, ld z) { transmatrix parabolic3(ld y, ld z) {
ld co = vid.binary_width / log(2) / 2; ld co = vid.binary_width / log(2) / 2;
return parabolic1(y * co, z * co); return hr::parabolic13(y * co, z * co);
} }
#endif
ld btrange = 20; ld btrange = 20;