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