mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-18 23:10:26 +00:00
3d:: corner_bonus
This commit is contained in:
parent
3da6090320
commit
aefea03ce1
@ -27,6 +27,8 @@ ld hexshift;
|
|||||||
|
|
||||||
ld sword_size = 0;
|
ld sword_size = 0;
|
||||||
|
|
||||||
|
ld corner_bonus = 0;
|
||||||
|
|
||||||
ld asteroid_size[8];
|
ld asteroid_size[8];
|
||||||
|
|
||||||
// the results are:
|
// the results are:
|
||||||
|
@ -1670,7 +1670,7 @@ bool do_draw(cell *c, const transmatrix& T) {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
ld dist = hdist0(tC0(T));
|
ld dist = hdist0(tC0(T));
|
||||||
if(dist > sightranges[geometry]) return false;
|
if(dist > sightranges[geometry] + corner_bonus) return false;
|
||||||
if(dist <= extra_generation_distance) setdist(c, 7, c);
|
if(dist <= extra_generation_distance) setdist(c, 7, c);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
@ -2615,7 +2615,11 @@ void create_wall3d() {
|
|||||||
if(shWall3D[i].flags & POLY_TRIANGLES)
|
if(shWall3D[i].flags & POLY_TRIANGLES)
|
||||||
last->flags |= POLY_TRIANGLES;
|
last->flags |= POLY_TRIANGLES;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
corner_bonus = 0;
|
||||||
|
for(hpcshape sh: shWall3D) for(int i=sh.s; i<sh.e; i++)
|
||||||
|
corner_bonus = max(corner_bonus, hdist0(hpc[i]));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user