1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-17 10:44:48 +00:00

fixed rebase in sph_in_low

This commit is contained in:
Zeno Rogue 2022-12-17 18:36:30 +01:00
parent 0e83580199
commit 014b4a8b23
2 changed files with 2 additions and 2 deletions

View File

@ -250,7 +250,7 @@ horo_distance::horo_distance(shiftpoint h1, const shiftmatrix& T) {
#endif
if(sn::in() || mhybrid || nil) become(inverse_shift(T, h1));
else
a = 0, b = intval(h1.h, unshift(tC0(T), h1.shift));
a = 0, b = intval(h1.h, unshift(T * tile_center(), h1.shift));
}
bool horo_distance::operator < (const horo_distance z) const {

View File

@ -154,7 +154,7 @@ cell *findbaseAround(shiftpoint p, cell *around, int maxsteps) {
}
cell *findbaseAround(const shiftmatrix& H, cell *around, int maxsteps) {
return findbaseAround(tC0(H), around, maxsteps);
return findbaseAround(H * tile_center(), around, maxsteps);
}
/* double distance(hyperpoint h) {