From bfedf93eb083b0419d4879ad6978ffba4b409c45 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 22 Aug 2018 11:21:58 +0200 Subject: [PATCH] fixed displayspin in binary --- graph.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/graph.cpp b/graph.cpp index 88ec1f35..e690baf8 100644 --- a/graph.cpp +++ b/graph.cpp @@ -249,8 +249,7 @@ ld displayspin(cell *c, int d) { else if(binarytiling) { if(d == NODIR) return 0; if(d == c->type-1) d++; - int dirs[8] = {0, 11, 21, 31, 42, 53, 63, 73}; - return (-21-dirs[d]) * 42 / M_PI; + return -(d+2)*M_PI/4; } else if(masterless) return - d * 2 * M_PI / c->type;