mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-14 20:57:10 +00:00
3d:: extra_generation_distance (todo: make it configurable from menus)
This commit is contained in:
@@ -1548,11 +1548,13 @@ bool do_draw(cell *c) {
|
||||
return true;
|
||||
}
|
||||
|
||||
ld extra_generation_distance = 99;
|
||||
|
||||
bool do_draw(cell *c, const transmatrix& T) {
|
||||
if(DIM == 3) {
|
||||
if(hyperbolic && T[DIM][DIM] > cosh(sightranges[geometry])) return false;
|
||||
if(euclid && hypot_d(3, tC0(T)) > sightranges[geometry]) return false;
|
||||
setdist(c, 7, c);
|
||||
ld dist = hdist0(tC0(T));
|
||||
if(dist > sightranges[geometry]) return false;
|
||||
if(dist <= extra_generation_distance) setdist(c, 7, c);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user