geom3:: gp:: autoscaling

This commit is contained in:
Zeno Rogue committed 2018-04-23 12:34:14 +02:00
1 parent 4a8e33a2d5
commit e43d630185
4 files changed
+30 -11

No files matched your search

+10
View File
@@ -703,6 +703,9 @@ namespace dialog {
if(ne.editwhat == &vid.linewidth)
addBoolItem("finer lines at the boundary", vid.antialias & AA_LINEWIDTH, 'o');
if(ne.editwhat == &geom3::wall_height)
addBoolItem("auto-adjust in Goldberg grids", geom3::gp_autoscale_heights, 'o');
display();
@@ -758,6 +761,13 @@ namespace dialog {
genrange_bonus = sightrange_bonus;
doOvergenerate();
}
else if(uni == 'o' && ne.editwhat == &geom3::wall_height) {
geom3::gp_autoscale_heights = !geom3::gp_autoscale_heights;
buildpolys();
#if CAP_GL
resetGL();
#endif
}
else if(uni == 'O' && ne.editwhat == &ne.intbuf && ne.intval == &sightrange_bonus && allowChangeRange()) {
gamerange_bonus = sightrange_bonus;
}