1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 14:37:16 +00:00

faster Penrose

This commit is contained in:
Zeno Rogue 2019-07-28 11:12:08 +02:00
parent 0a2a033e7e
commit 80ae0d7bd6

View File

@ -311,8 +311,8 @@ struct hrmap_kite : hrmap {
}
transmatrix relative_matrix(heptagon *h2, heptagon *h1) override {
/* if(gmatrix0.count(h2->c7) && gmatrix0.count(h1->c7))
return inverse(gmatrix0[h1->c7]) * gmatrix0[h2->c7]; */
if(gmatrix0.count(h2->c7) && gmatrix0.count(h1->c7))
return inverse(gmatrix0[h1->c7]) * gmatrix0[h2->c7];
transmatrix gm = Id, where = Id;
while(h1 != h2) {
if(h1->distance <= h2->distance)