From 51e1fe06b32169d7f6722ec2d01a9379b42c1ea2 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Mon, 21 Oct 2019 22:35:04 +0200 Subject: [PATCH] in crystal3, quick relative_matrix for adjacent --- crystal.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/crystal.cpp b/crystal.cpp index 9b762dd1..16cccdc0 100644 --- a/crystal.cpp +++ b/crystal.cpp @@ -584,6 +584,7 @@ struct hrmap_crystal : hrmap_standard { virtual transmatrix relative_matrix(cell *h2, cell *h1, const hyperpoint& hint) override { if(!crystal3()) return hrmap_standard::relative_matrix(h2, h1, hint); + for(int i=0; imove(i)) return adj(h1->master, i); if(gmatrix0.count(h2) && gmatrix0.count(h1)) return inverse(gmatrix0[h1]) * gmatrix0[h2]; return xpush(999);