From 867b3bf8388f4e0c9d1f62f4452c3e8e1d504fff Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 29 May 2019 01:20:25 +0200 Subject: [PATCH] auto-adjust in switch_fpp --- geometry.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/geometry.cpp b/geometry.cpp index 35da18e1..5699c6b1 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -394,15 +394,21 @@ void switch_always3() { #if MAXMDIM >= 4 if(rug::rugged) rug::close(); if(dual::split(switch_fpp)) return; + check_cgi(); cgi.require_basics(); if(!geom3::always3) { geom3::always3 = true; - geom3::wall_height = 1.5; + ld ms = min(cgi.scalefactor, 1); + geom3::wall_height = 1.5 * ms; if(sphere) { geom3::depth = M_PI / 6; geom3::wall_height = M_PI / 3; } geom3::human_wall_ratio = 0.8; + if(euclid && allowIncreasedSight() && vid.use_smart_range == 0) { + genrange_bonus = gamerange_bonus = sightrange_bonus = cgi.base_distlimit * 3/2; + } geom3::camera = 0; + geom3::depth = ms; if(pmodel == mdDisk) pmodel = mdPerspective; swapmatrix(View); callhooks(hooks_swapdim);