From e1ec1ef5b911e296f0ddebeda072261b7f105838 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 24 Mar 2023 23:16:25 +0100 Subject: [PATCH] hat:: fixed tiles --- aperiodic-hat.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/aperiodic-hat.cpp b/aperiodic-hat.cpp index c65181da..6547ca76 100644 --- a/aperiodic-hat.cpp +++ b/aperiodic-hat.cpp @@ -456,6 +456,7 @@ struct hrmap_hat : hrmap { heptagon *getOrigin() override { return origin; } hyperpoint get_corner(cell *c, int cid, ld cf) override { + cid = gmod(cid, isize(hatcorners[0])); int t = c->master->c7 == c; auto& h = hatcorners[t][cid];