on_dim_change clears where on sphere

This commit is contained in:
Zeno Rogue 2023-02-05 21:59:45 +01:00
parent 7d600ecdfe
commit b104cc0361
1 changed files with 2 additions and 0 deletions

View File

@ -172,6 +172,8 @@ struct hrmap_spherical : hrmap_standard {
return Id;
}
void on_dim_change() override { where.clear(); }
transmatrix relative_matrixc(cell *c2, cell *c1, const hyperpoint& hint) override {
transmatrix T = iso_inverse(get_where(c1)) * get_where(c2);
if(elliptic) fixelliptic(T);