1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-05-08 00:01:24 +00:00

fixed a crash when displaying a compass in binary tiling

This commit is contained in:
Zeno Rogue
2026-04-17 18:28:50 +02:00
parent d2564d07ee
commit 8557a0347e

View File

@@ -125,7 +125,8 @@ EX int compassDist(cell *c) {
/** identify the compass target that compassDist is talking about */
EX const void *whichCompass(cell *c) {
if(sphere || quotient) return nullptr;
if(eubinary || c->master->alt) return c->master->alt->alt;
if(eubinary) return nullptr;
if(c->master->alt) return c->master->alt->alt;
if(isHaunted(c->land) || c->land == laGraveyard) return &linf[laHaunted];
return &NOCOMPASS;
}