Feature Request: Add a debug setting to prevent double clicking on the world map resulting in a teleport

Adds DoubleClickTeleportMap to debug settings.
This commit is contained in:
Inusaito Sayori
2013-09-14 20:59:12 -04:00
parent 0b20babd35
commit 0d1c4def2d
2 changed files with 12 additions and 0 deletions

View File

@@ -5868,6 +5868,17 @@ This should be as low as possible, but too low may break functionality</string>
<key>Value</key>
<integer>0</integer>
</map>
<key>DoubleClickTeleportMap</key>
<map>
<key>Comment</key>
<string>Enable double-click-teleport for the map</string>
<key>Persist</key>
<integer>1</integer>
<key>Type</key>
<string>Boolean</string>
<key>Value</key>
<integer>1</integer>
</map>
<key>DoubleClickTeleportMiniMap</key>
<map>
<key>Comment</key>

View File

@@ -2137,6 +2137,7 @@ BOOL LLWorldMapView::handleDoubleClick( S32 x, S32 y, MASK mask )
}
default:
{
if (!gSavedSettings.getBOOL("DoubleClickTeleportMap")) return true;
if (LLWorldMap::getInstance()->isTracking())
{
LLWorldMap::getInstance()->setTrackingDoubleClick();