aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewerdisplay.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-04-07 01:09:14 -0700
committerMcCabe Maxsted2010-04-07 01:09:14 -0700
commit35eddbc20b07740903550783b645d122186b28e2 (patch)
tree2b05fb58c760065384c56adabb71077285f423e9 /linden/indra/newview/llviewerdisplay.cpp
parentRenamed '2nd Life' and '1st Life' profile tabs to 'Avatar' and 'Real Life,' w... (diff)
downloadmeta-impy-35eddbc20b07740903550783b645d122186b28e2.zip
meta-impy-35eddbc20b07740903550783b645d122186b28e2.tar.gz
meta-impy-35eddbc20b07740903550783b645d122186b28e2.tar.bz2
meta-impy-35eddbc20b07740903550783b645d122186b28e2.tar.xz
Ported disable login/tp screen options from Emerald (in Preferences > Advanced)
Diffstat (limited to 'linden/indra/newview/llviewerdisplay.cpp')
-rw-r--r--linden/indra/newview/llviewerdisplay.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/linden/indra/newview/llviewerdisplay.cpp b/linden/indra/newview/llviewerdisplay.cpp
index 28d048b..6f7de25 100644
--- a/linden/indra/newview/llviewerdisplay.cpp
+++ b/linden/indra/newview/llviewerdisplay.cpp
@@ -348,7 +348,7 @@ void display(BOOL rebuild, F32 zoom_factor, int subfield, BOOL for_snapshot)
348 // Transition to REQUESTED. Viewer has sent some kind 348 // Transition to REQUESTED. Viewer has sent some kind
349 // of TeleportRequest to the source simulator 349 // of TeleportRequest to the source simulator
350 gTeleportDisplayTimer.reset(); 350 gTeleportDisplayTimer.reset();
351 gViewerWindow->setShowProgress(TRUE); 351 if(!gSavedSettings.getBOOL("DisableTeleportScreens"))gViewerWindow->setShowProgress(TRUE);
352 gViewerWindow->setProgressPercent(0); 352 gViewerWindow->setProgressPercent(0);
353 gAgent.setTeleportState( LLAgent::TELEPORT_REQUESTED ); 353 gAgent.setTeleportState( LLAgent::TELEPORT_REQUESTED );
354 gAgent.setTeleportMessage( 354 gAgent.setTeleportMessage(
@@ -376,14 +376,14 @@ void display(BOOL rebuild, F32 zoom_factor, int subfield, BOOL for_snapshot)
376 gAgent.setTeleportMessage( 376 gAgent.setTeleportMessage(
377 LLAgent::sTeleportProgressMessages["arriving"]); 377 LLAgent::sTeleportProgressMessages["arriving"]);
378 gImageList.mForceResetTextureStats = TRUE; 378 gImageList.mForceResetTextureStats = TRUE;
379 gAgent.resetView(TRUE, TRUE); 379 if(!gSavedSettings.getBOOL("DisableTeleportScreens"))gAgent.resetView(TRUE, TRUE);
380 break; 380 break;
381 381
382 case LLAgent::TELEPORT_ARRIVING: 382 case LLAgent::TELEPORT_ARRIVING:
383 // Make the user wait while content "pre-caches" 383 // Make the user wait while content "pre-caches"
384 { 384 {
385 F32 arrival_fraction = (gTeleportArrivalTimer.getElapsedTimeF32() / TELEPORT_ARRIVAL_DELAY); 385 F32 arrival_fraction = (gTeleportArrivalTimer.getElapsedTimeF32() / TELEPORT_ARRIVAL_DELAY);
386 if( arrival_fraction > 1.f ) 386 if( arrival_fraction > 1.f || gSavedSettings.getBOOL("DisableTeleportScreens"))
387 { 387 {
388 arrival_fraction = 1.f; 388 arrival_fraction = 1.f;
389 LLFirstUse::useTeleport(); 389 LLFirstUse::useTeleport();