3d:: 3d is affected by cells_drawn_limit; improved the sightrange edit dialog with more options and better help

This commit is contained in:
Zeno Rogue
2019-09-12 22:38:45 +02:00
parent e5cc9d77a0
commit 943a8395e5
3 changed files with 34 additions and 9 deletions
+1
View File
@@ -1555,6 +1555,7 @@ ld extra_generation_distance = 99;
bool do_draw(cell *c, const transmatrix& T) {
if(DIM == 3) {
if(cells_drawn > vid.cells_drawn_limit) return false;
ld dist = hdist0(tC0(T));
if(dist > sightranges[geometry]) return false;
if(dist <= extra_generation_distance) setdist(c, 7, c);