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

land distance shows the correct values in equidistant-based lands in Euclidean

This commit is contained in:
Zeno Rogue 2019-12-27 11:31:10 +01:00
parent e319d953ea
commit 86050df3da

View File

@ -376,7 +376,7 @@ EX int curr_dist(cell *c) {
case dfWorld: case dfWorld:
if(!mod_allowed() && !among(c->land, laOcean, laIvoryTower, laEndorian, laDungeon, laTemple, laWhirlpool, laCanvas)) if(!mod_allowed() && !among(c->land, laOcean, laIvoryTower, laEndorian, laDungeon, laTemple, laWhirlpool, laCanvas))
return 0; return 0;
if(eubinary || c->master->alt) return celldistAlt(c); if(isCyclic(c->land) && (eubinary || c->master->alt)) return celldistAlt(c);
return inmirror(c) ? (c->landparam & 255) : c->landparam; return inmirror(c) ? (c->landparam & 255) : c->landparam;
} }
return 0; return 0;