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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user