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

3D:: fixed binary::relative_matrix

This commit is contained in:
? 2019-02-27 17:58:02 +01:00 committed by Zeno Rogue
parent 41be07ae72
commit 483a5e253c

View File

@ -306,7 +306,7 @@ namespace binary {
while(h1 != h2) {
if(h1->distance <= h2->distance) {
if(DIM == 3)
h2 = hr::createStep(h2, 8), where = inverse(tmatrix(h2, 8)) * where;
where = inverse(tmatrix(h2, 8)) * where, h2 = hr::createStep(h2, 8);
else {
if(type_of(h2) == 6)
h2 = hr::createStep(h2, bd_down), where = xpush(-log(2)) * where;
@ -318,7 +318,7 @@ namespace binary {
}
else {
if(DIM == 3)
h1 = hr::createStep(h1, 8), where = where * tmatrix(h1, 8);
gm = gm * tmatrix(h1, 8), h1 = hr::createStep(h1, 8);
else {
if(type_of(h1) == 6)
h1 = hr::createStep(h1, bd_down), gm = gm * xpush(log(2));