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

virtualRebase on hyperpoint now works at large distances

This commit is contained in:
Zeno Rogue 2018-09-30 16:23:20 +02:00
parent fc06397ccc
commit ebfe1aeac2

View File

@ -322,7 +322,8 @@ void virtualRebase(cell*& base, transmatrix& at, bool tohex) {
}
void virtualRebase(cell*& base, hyperpoint& h, bool tohex) {
virtualRebase(base, h, tohex, [] (const hyperpoint& h) { return h; });
// we perform fixing in check, so that it works with larger range
virtualRebase(base, h, tohex, [] (const hyperpoint& h) { return hyperbolic ? hpxy(h[0], h[1]) :h; });
}
// works only in geometries similar to the standard one, and only on heptagons