mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 21:07:17 +00:00
3d:: binary:: fixed a crash bug caused by using the wrong relative_matrix
This commit is contained in:
parent
225282a3eb
commit
a31f1094f9
@ -279,7 +279,12 @@ namespace binary {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
transmatrix relative_matrix(heptagon *h2, heptagon *h1) {
|
// hrmap_standard overrides hrmap's default, override it back
|
||||||
|
virtual transmatrix relative_matrix(cell *c2, cell *c1, const hyperpoint& point_hint) override {
|
||||||
|
return relative_matrix(c2->master, c1->master);
|
||||||
|
}
|
||||||
|
|
||||||
|
transmatrix relative_matrix(heptagon *h2, heptagon *h1) override {
|
||||||
if(gmatrix0.count(h2->c7) && gmatrix0.count(h1->c7))
|
if(gmatrix0.count(h2->c7) && gmatrix0.count(h1->c7))
|
||||||
return inverse(gmatrix0[h1->c7]) * gmatrix0[h2->c7];
|
return inverse(gmatrix0[h1->c7]) * gmatrix0[h2->c7];
|
||||||
transmatrix gm = Id, where = Id;
|
transmatrix gm = Id, where = Id;
|
||||||
|
Loading…
Reference in New Issue
Block a user