aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-11-01 20:24:12 -0700
committerMcCabe Maxsted2010-11-01 20:24:12 -0700
commit5df80675e33f774a60b2021e41b77ffed574d523 (patch)
tree95524daff07996213f2301e79f721a0633cb98d6 /linden/indra/newview
parentLoad default grid list url from new GridUpdateList setting (diff)
downloadmeta-impy-5df80675e33f774a60b2021e41b77ffed574d523.zip
meta-impy-5df80675e33f774a60b2021e41b77ffed574d523.tar.gz
meta-impy-5df80675e33f774a60b2021e41b77ffed574d523.tar.bz2
meta-impy-5df80675e33f774a60b2021e41b77ffed574d523.tar.xz
Don't allow setting draw distance below 0 in the openregionsettings
Diffstat (limited to 'linden/indra/newview')
-rw-r--r--linden/indra/newview/kowopenregionsettings.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/linden/indra/newview/kowopenregionsettings.cpp b/linden/indra/newview/kowopenregionsettings.cpp
index 3cceb0c..f5a845a 100644
--- a/linden/indra/newview/kowopenregionsettings.cpp
+++ b/linden/indra/newview/kowopenregionsettings.cpp
@@ -77,7 +77,11 @@ class OpenRegionInfoUpdate : public LLHTTPNode
77 } 77 }
78 if ( body.has("DrawDistance") ) 78 if ( body.has("DrawDistance") )
79 { 79 {
80 gAgent.mDrawDistance = body["DrawDistance"].asReal(); 80 F32 distance = body["DrawDistance"].asReal();
81 if (distance > 0)
82 {
83 gAgent.mDrawDistance = distance;
84 }
81 } 85 }
82 if ( body.has("ForceDrawDistance") ) 86 if ( body.has("ForceDrawDistance") )
83 { 87 {