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

gp::INVERSE:: relative_matrix now works correctly

This commit is contained in:
Zeno Rogue 2020-09-22 15:51:15 +02:00
parent 1ab72ba964
commit f4a596ed87

View File

@ -1121,6 +1121,14 @@ EX namespace gp {
return c;
}
transmatrix relative_matrix(heptagon *h2, heptagon *h1, const hyperpoint& hint) override {
return in_underlying([&] { return currentmap->relative_matrix(h2, h1, hint); });
}
transmatrix relative_matrix(cell *c2, cell *c1, const hyperpoint& hint) override {
return in_underlying([&] { return currentmap->relative_matrix(c2, c1, hint); });
}
~hrmap_inverse() {
in_underlying([this] { delete underlying_map; });
}