From 6191409624d773557bf30e80e3532f5fddebba89 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 27 Oct 2017 20:10:37 +0200 Subject: [PATCH] a try to fix Halloween glitches (unsuccessful) --- graph.cpp | 2 ++ hyper.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/graph.cpp b/graph.cpp index af14a101..0cd80fc5 100644 --- a/graph.cpp +++ b/graph.cpp @@ -2909,6 +2909,8 @@ void placeSidewall(cell *c, int i, int sidepar, const transmatrix& V, bool warp, transmatrix V2 = V * ddspin(c, i); + // if(sphere && vid.alphax <= 1 && tC0(V2 * xpush(cellgfxdist(c, i)/2))[2] < -.5) return; + /* int aw = away(V2); prio += aw; if(!detaillevel && aw < 0) return; */ diff --git a/hyper.h b/hyper.h index 667bb712..8a7a3b30 100644 --- a/hyper.h +++ b/hyper.h @@ -1602,3 +1602,5 @@ extern int stampbase; transmatrix cellrelmatrix(cell *c, int i); void terracottaAround(cell *c); + +double cellgfxdist(cell *c, int i);