1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-14 05:57:37 +00:00

3d::binary:: make the land barriers more like planes by pushing them by a number depending on btwidth

This commit is contained in:
Zeno Rogue
2019-03-10 12:04:29 +01:00
parent 4633231721
commit 225282a3eb
3 changed files with 21 additions and 5 deletions

View File

@@ -2452,6 +2452,14 @@ void setdist(cell *c, int d, cell *from) {
if(d >= BARLEV) {
if(binarytiling && DIM == 3 && !c->land) {
ld z = vid.binary_width;
cell *cseek = c;
int step = 0;
while(z < 3.999 && step < 10) cseek = cseek->cmove(S7-1), z *= 2;
if(cseek->master->emeraldval) setland(c, eLand(cseek->master->emeraldval));
}
if(!c->land && from && from->land != laElementalWall && from->land != laHauntedWall && from->land != laOceanWall &&
from->land != laBarrier && !quotient) {
if(!hasbardir(c)) setland(c, from->land);