1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-01-25 20:33:32 +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

@@ -1601,8 +1601,8 @@ bool do_draw(cell *c) {
bool do_draw(cell *c, const transmatrix& T) {
if(DIM == 3) {
if(hyperbolic && T[DIM][DIM] > binary::btrange_cosh) return false;
if(euclid && hypot_d(tC0(T), 3) > 7) return false;
if(hyperbolic && T[DIM][DIM] > cosh(sightranges[geometry])) return false;
if(euclid && hypot_d(tC0(T), 3) > sightranges[geometry]) return false;
setdist(c, 7, c);
return true;
}