diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/hippoLimits.cpp | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/linden/indra/newview/hippoLimits.cpp b/linden/indra/newview/hippoLimits.cpp index 88b86a9..78a5856 100644 --- a/linden/indra/newview/hippoLimits.cpp +++ b/linden/indra/newview/hippoLimits.cpp | |||
@@ -173,7 +173,7 @@ F32 HippoLimits::getMinPrimXPos() const | |||
173 | { | 173 | { |
174 | if (gSavedSettings.getBOOL("DisableMaxBuildConstraints") && !mEnforceMaxBuild) | 174 | if (gSavedSettings.getBOOL("DisableMaxBuildConstraints") && !mEnforceMaxBuild) |
175 | { | 175 | { |
176 | return FLT_MAX; | 176 | return FLT_MIN; |
177 | } | 177 | } |
178 | else | 178 | else |
179 | { | 179 | { |
@@ -185,7 +185,7 @@ F32 HippoLimits::getMinPrimYPos() const | |||
185 | { | 185 | { |
186 | if (gSavedSettings.getBOOL("DisableMaxBuildConstraints") && !mEnforceMaxBuild) | 186 | if (gSavedSettings.getBOOL("DisableMaxBuildConstraints") && !mEnforceMaxBuild) |
187 | { | 187 | { |
188 | return FLT_MAX; | 188 | return FLT_MIN; |
189 | } | 189 | } |
190 | else | 190 | else |
191 | { | 191 | { |
@@ -197,10 +197,28 @@ F32 HippoLimits::getMinPrimZPos() const | |||
197 | { | 197 | { |
198 | if (gSavedSettings.getBOOL("DisableMaxBuildConstraints") && !mEnforceMaxBuild) | 198 | if (gSavedSettings.getBOOL("DisableMaxBuildConstraints") && !mEnforceMaxBuild) |
199 | { | 199 | { |
200 | return FLT_MAX; | 200 | return FLT_MIN; |
201 | } | 201 | } |
202 | else | 202 | else |
203 | { | 203 | { |
204 | return mMinPrimZPos; | 204 | return mMinPrimZPos; |
205 | } | 205 | } |
206 | } | 206 | } |
207 | |||
208 | F32 HippoLimits::getMaxDragDistance() const | ||
209 | { | ||
210 | if (mMaxDragDistance == 0) | ||
211 | { | ||
212 | return FLT_MAX; | ||
213 | } | ||
214 | else | ||
215 | { | ||
216 | F32 max_drag_distance = gSavedSettings.getBOOL("LimitDragDistance") ? gSavedSettings.getF32("MaxDragDistance") : FLT_MAX; | ||
217 | |||
218 | if(max_drag_distance > gHippoLimits->getMaxDragDistance()) //Chose the more restrictive | ||
219 | { | ||
220 | max_drag_distance = gHippoLimits->getMaxDragDistance(); | ||
221 | } | ||
222 | return max_drag_distance; | ||
223 | } | ||
224 | } \ No newline at end of file | ||