From 0e8a5f6065fa83a4f0d39958516741b24ae406f2 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 29 May 2020 01:53:08 +0200 Subject: [PATCH] patterns in Crystal bitruncated {6,4}; also fixes graphics --- crystal.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/crystal.cpp b/crystal.cpp index 5d5b6f37..e7e2ec76 100644 --- a/crystal.cpp +++ b/crystal.cpp @@ -509,6 +509,15 @@ struct hrmap_crystal : hrmap_standard { h->alt = NULL; h->cdata = NULL; h->c7 = newCell(deg, h); + + /* in {6,4} we need emeraldval for some patterns, including (bitruncated) football and (bitruncated) three-color */ + h->emeraldval = (c[0] ^ c[1] ^ c[2]) & 2; + h->emeraldval ^= (c[1] & 4); + h->emeraldval ^= (c[0] & 4); + h->emeraldval ^= (c[2] & 4); + h->emeraldval ^= ((c[2] & 2) << 1); + if(c[0] & 2) h->emeraldval ^= 1; + h->distance = 0; if(ginf[gCrystal].vertex == 3) h->fiftyval = fiftyrule(c);