1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-24 18:37:39 +00:00

fixed hdist computation in SL, also fixed hpxy and hpxy

This commit is contained in:
Zeno Rogue
2019-08-24 20:29:10 +02:00
parent 50052f27f5
commit 47d309e408
3 changed files with 10 additions and 3 deletions

View File

@@ -1039,6 +1039,7 @@ EX namespace slr {
struct hrmap_psl2 : hybrid::hrmap_hybrid {
virtual transmatrix relative_matrix(cell *c2, cell *c1, const struct hyperpoint& point_hint) override {
if(c1 == c2) return Id;
for(int i=0; i<c1->type; i++) if(c1->move(i) == c2) return adjmatrix(i, c1->c.spin(i));
if(gmatrix0.count(c2) && gmatrix0.count(c1))
return inverse(gmatrix0[c1]) * gmatrix0[c2];