1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 01:20:37 +00:00

fixed relative_matrix_recursive in some geoms

This commit is contained in:
Zeno Rogue 2023-10-05 13:55:12 +02:00
parent 67a77befb9
commit 99f4b8698b

View File

@ -42,7 +42,7 @@ EX transmatrix relative_matrix_recursive(heptagon *h2, heptagon *h1) {
}
else {
for(int i=0; i<h2->type; i++) if(h2->move(i) && h2->move(i)->distance < h2->distance) {
where = currentmap->iadj(h2, 0) * where;
where = currentmap->iadj(h2, i) * where;
h2 = h2->move(i);
goto again;
}