3d:: corner_bonus

This commit is contained in:
Zeno Rogue committed 2019-09-12 22:43:00 +02:00
1 parent 3da6090320
commit aefea03ce1
3 files changed
+8 -2

No files matched your search

+5 -1
View File
@@ -2615,7 +2615,11 @@ void create_wall3d() {
if(shWall3D[i].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