Fix Issue 992: Singularity will not allow teleports above 4096, nor building above 4096.

Teleport height restrictions have been increased to 8192
 -The 4096 limit isn't in much of the teleport code anyhow, and it's certainly not enforced.
Building height restrictions are now hooked up to hippolimits, apparently they hadn't been
 -MAX_OBJECT_Z, and hardcoded 4096s now use gHippoLimits->getMaxHeight() instead
 -On floater_tools.xml max_val is left out, instead it is set with the rest of the gHippoLimits edit constraints in LLPanelObject::getState
This commit is contained in:
Inusaito Sayori
2013-08-08 16:00:49 -04:00
parent 4c69074564
commit 4b8db31073
7 changed files with 18 additions and 13 deletions

View File

@@ -58,6 +58,8 @@
#include "llvoavatarself.h"
#include "llworld.h"
#include "hippolimits.h"
// [RLVa:KB]
#include "rlvhandler.h"
// [/RLVa:KB]
@@ -635,9 +637,9 @@ void LLToolGrab::handleHoverActive(S32 x, S32 y, MASK mask)
}
// For safety, cap heights where objects can be dragged
if (grab_point_global.mdV[VZ] > MAX_OBJECT_Z)
if (grab_point_global.mdV[VZ] > gHippoLimits->getMaxHeight())
{
grab_point_global.mdV[VZ] = MAX_OBJECT_Z;
grab_point_global.mdV[VZ] = gHippoLimits->getMaxHeight();
}
grab_point_global = LLWorld::getInstance()->clipToVisibleRegions(mDragStartPointGlobal, grab_point_global);