1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-18 23:10:26 +00:00

expansion:: curr_dist in dfWorld mode is now more helpful

This commit is contained in:
Zeno Rogue 2021-07-29 13:01:23 +02:00
parent 05d4fcc280
commit 9c07ea7d3d

View File

@ -430,7 +430,10 @@ 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((isCyclic(c->land) || c->land == laCanvas) && (eubinary || c->master->alt)) return celldistAlt(c); if((isCyclic(c->land) || among(c->land, laCanvas, laCaribbean, laStorms, laRlyeh))) {
if(eubinary || c->master->alt) return celldistAlt(c);
return UNKNOWN;
}
return inmirror(c) ? (c->landparam & 255) : c->landparam; return inmirror(c) ? (c->landparam & 255) : c->landparam;
} }
return 0; return 0;
@ -555,7 +558,7 @@ void celldrawer::do_viewdist() {
switch(number_coding) { switch(number_coding) {
case ncDistance: { case ncDistance: {
label = its(cd); label = cd == UNKNOWN ? "?" : its(cd);
dc = distcolors[cd]; dc = distcolors[cd];
break; break;
} }