From 3906e11d92e7780de79b7aa3d5f74a043fa4d229 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Mon, 20 Aug 2018 02:52:07 +0200 Subject: [PATCH] fixed grid drawing --- graph.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graph.cpp b/graph.cpp index 7591b2e1..ce685441 100644 --- a/graph.cpp +++ b/graph.cpp @@ -4757,8 +4757,8 @@ void drawcell(cell *c, transmatrix V, int spinv, bool mirrored) { else { for(int t=0; ttype; t++) if(c->move(t) && c->move(t) < c) - queueline(V * get_corner_position(c, t), - V * get_corner_position(c, (t+1)%c->type), + queueline(V * get_corner_position(c, (t+c->type-1)%c->type), + V * get_corner_position(c, t%c->type), gridcolor(c, c->move(t)), prec); } }