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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user