1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-29 04:47:41 +00:00

more care to render Yendor/Compass 'X' inside the viewable screen

This commit is contained in:
Zeno Rogue
2025-05-26 09:48:53 +02:00
parent 5d8e0eed80
commit 6507511cad
2 changed files with 22 additions and 4 deletions

View File

@@ -134,8 +134,11 @@ EX cell *findcompass(cell *c) {
int d = compassDist(c);
if(among(d, NOCOMPASS, ALTDIST_BOUNDARY, ALTDIST_UNKNOWN, ALTDIST_ERROR)) return NULL;
auto w = whichCompass(c);
auto gc = c;
while(inscreenrange(c)) {
gc = c;
if(!eubinary && !sphere && !quotient)
currentmap->extend_altmap(c->master);
forCellEx(c2, c) if(w == whichCompass(c2) && compassDist(c2) < d) {
@@ -152,7 +155,7 @@ EX cell *findcompass(cell *c) {
nextk: ;
}
return c;
return gc;
}
EX bool grailWasFound(cell *c) {