AuroraSim: HippoLimits and HippoGridManager update, and support for Aurora's MaxDrag

This commit is contained in:
Lirusaito
2013-01-21 21:22:04 -05:00
parent aa3228be76
commit 48113f8506
3 changed files with 7 additions and 3 deletions

View File

@@ -67,6 +67,7 @@
#include "llworld.h"
#include "llui.h"
#include "pipeline.h"
#include "hippogridmanager.h"
// [RLVa:KB]
#include "rlvhandler.h"
@@ -547,6 +548,9 @@ BOOL LLManipTranslate::handleHover(S32 x, S32 y, MASK mask)
{
F32 max_drag_distance = gSavedSettings.getF32("MaxDragDistance");
if (gHippoGridManager->getConnectedGrid()->isAurora())
max_drag_distance = llmin(10000.f, max_drag_distance);
if (relative_move.magVecSquared() > max_drag_distance * max_drag_distance)
{
lldebugst(LLERR_USER_INPUT) << "hover handled by LLManipTranslate (too far)" << llendl;