MAINT-328 FIXED Use stopTracking() before each new beacon

master
maxim_productengine 2012-08-08 17:55:04 +03:00
parent e5e8652e2c
commit ba7e1ec1d4
1 changed files with 5 additions and 8 deletions

View File

@ -122,16 +122,13 @@ BOOL LLFloaterMap::handleDoubleClick(S32 x, S32 y, MASK mask)
LLVector3d pos_global = mMap->viewPosToGlobal(x, y);
// If we're not tracking a beacon already, double-click will set one
if (!LLTracker::isTracking(NULL))
LLTracker::stopTracking(NULL);
LLFloaterWorldMap* world_map = LLFloaterWorldMap::getInstance();
if (world_map)
{
LLFloaterWorldMap* world_map = LLFloaterWorldMap::getInstance();
if (world_map)
{
world_map->trackLocation(pos_global);
}
world_map->trackLocation(pos_global);
}
if (gSavedSettings.getBOOL("DoubleClickTeleport"))
{
// If DoubleClickTeleport is on, double clicking the minimap will teleport there