mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-13 13:47:37 +00:00
updir and expansion functions in binarytiling
This commit is contained in:
@@ -2523,7 +2523,8 @@ void setdist(cell *c, int d, cell *from) {
|
||||
cell *cseek = c;
|
||||
int step = 0;
|
||||
if(geometry == gHoroHex) z *= 2;
|
||||
while(z < 3.999 && step < 10) cseek = cseek->cmove(penrose ? 4 : S7-1), z *= 2;
|
||||
ld scale = binary::expansion();
|
||||
while(z < 3.999 && step < 10) cseek = cseek->cmove(binary::updir()), z *= scale;
|
||||
if(cseek->master->emeraldval) setland(c, eLand(cseek->master->emeraldval));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user