1
0
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:
Zeno Rogue
2019-07-25 23:06:09 +02:00
parent 0908d1d974
commit b2e8a869cb
3 changed files with 24 additions and 4 deletions

View File

@@ -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));
}