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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user