1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-22 21:23:18 +00:00

fixup to celldistAlt (masterAlt)

This commit is contained in:
Zeno Rogue 2020-01-28 11:17:09 +01:00
parent 3804d2bfb7
commit 59a36709f8

View File

@ -1676,7 +1676,7 @@ EX void buildCamelot(cell *c) {
EX int masterAlt(cell *c) {
#if MAXMDIM >= 4
if(WDIM == 3 && hyperbolic) return reg3::altdist(c->master);
if(WDIM == 3 && hyperbolic && !reg3::in_rule()) return reg3::altdist(c->master);
#endif
return c->master->alt->distance;
}