aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-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 {