From 49d32753e3d2b1438277d691182046752a3bec65 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 7 Oct 2017 00:33:32 +0200 Subject: [PATCH] fixed the 'away' function to draw sidewalls correctly --- hypgraph.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hypgraph.cpp b/hypgraph.cpp index f4c9f4db..39d48fa1 100644 --- a/hypgraph.cpp +++ b/hypgraph.cpp @@ -262,7 +262,7 @@ transmatrix mirrorif(const transmatrix& V, bool b) { // -1 if away, 0 if not away int away(const transmatrix& V2) { - return intval(C0, V2 * xpush0(1)) > intval(C0, tC0(V2)); + return (intval(C0, V2 * xpush0(.1)) > intval(C0, tC0(V2))) ? -1 : 0; } /* double zgrad(double f1, double f2, int nom, int den) {