mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-31 11:19:19 +00:00
btrange_cosh checked in do_draw
This commit is contained in:
parent
d08e58f404
commit
e8fa30de4c
@ -281,11 +281,7 @@ namespace binary {
|
|||||||
|
|
||||||
|
|
||||||
cell *c = h->c7;
|
cell *c = h->c7;
|
||||||
if(DIM == 2 && !do_draw(c, V)) continue;
|
if(!do_draw(c, V)) continue;
|
||||||
if(DIM == 3) {
|
|
||||||
if(V[DIM][DIM] > btrange_cosh) continue;
|
|
||||||
setdist(c, 7, c);
|
|
||||||
}
|
|
||||||
drawcell(c, V, 0, false);
|
drawcell(c, V, 0, false);
|
||||||
|
|
||||||
if(DIM == 2) {
|
if(DIM == 2) {
|
||||||
|
@ -1589,6 +1589,13 @@ bool do_draw(cell *c) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool do_draw(cell *c, const transmatrix& T) {
|
bool do_draw(cell *c, const transmatrix& T) {
|
||||||
|
if(DIM == 3) {
|
||||||
|
if(hyperbolic && V[DIM][DIM] > btrange_cosh) return false;
|
||||||
|
if(euclid && hypot_d(tC0(T), 3)) return false;
|
||||||
|
setdist(c, 7, c);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
if(just_gmatrix && sphere) return true;
|
if(just_gmatrix && sphere) return true;
|
||||||
if(!do_draw(c)) return false;
|
if(!do_draw(c)) return false;
|
||||||
if(euclid && pmodel == mdSpiral) {
|
if(euclid && pmodel == mdSpiral) {
|
||||||
|
Loading…
Reference in New Issue
Block a user