1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-07-03 10:33:26 +00:00

fixed a crash with irregular spherical maps

This commit is contained in:
Zeno Rogue 2024-05-05 15:11:07 +02:00
parent bc22d17a16
commit 9aa15f96e1

View File

@ -178,6 +178,7 @@ struct hrmap_spherical : hrmap_standard {
}
transmatrix relative_matrixc(cell *c2, cell *c1, const hyperpoint& hint) override {
if(IRREGULAR) return relative_matrix_via_masters(c2, c1, hint);
transmatrix T = iso_inverse(get_where(c1)) * get_where(c2);
if(elliptic) fixelliptic(T);
return T;