aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llstartup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llstartup.cpp')
-rw-r--r--linden/indra/newview/llstartup.cpp24
1 files changed, 6 insertions, 18 deletions
diff --git a/linden/indra/newview/llstartup.cpp b/linden/indra/newview/llstartup.cpp
index d853dc0..2fd96df 100644
--- a/linden/indra/newview/llstartup.cpp
+++ b/linden/indra/newview/llstartup.cpp
@@ -348,7 +348,6 @@ bool idle_startup()
348 const F32 TIMEOUT_SECONDS = 10.f; // changed from 5 to 10 seconds for OpenSim lag -- MC 348 const F32 TIMEOUT_SECONDS = 10.f; // changed from 5 to 10 seconds for OpenSim lag -- MC
349 const S32 MAX_TIMEOUT_COUNT = 3; 349 const S32 MAX_TIMEOUT_COUNT = 3;
350 static LLTimer timeout; 350 static LLTimer timeout;
351 static S32 timeout_count = 0;
352 351
353 static LLTimer login_time; 352 static LLTimer login_time;
354 static LLTimer connecting_region_timer; 353 static LLTimer connecting_region_timer;
@@ -380,11 +379,10 @@ bool idle_startup()
380 379
381 // last location by default 380 // last location by default
382 static S32 agent_location_id = START_LOCATION_ID_LAST; 381 static S32 agent_location_id = START_LOCATION_ID_LAST;
383 static S32 location_which = START_LOCATION_ID_LAST;
384 382
385 static bool show_connect_box = true; 383 static bool show_connect_box = true;
386 384
387 static bool stipend_since_login = false; 385 //static bool stipend_since_login = false;
388 386
389 static bool samename = false; 387 static bool samename = false;
390 388
@@ -799,8 +797,6 @@ bool idle_startup()
799 797
800 gViewerWindow->getWindow()->setCursor(UI_CURSOR_ARROW); 798 gViewerWindow->getWindow()->setCursor(UI_CURSOR_ARROW);
801 799
802 timeout_count = 0;
803
804 if (LLStartUp::shouldAutoLogin()) 800 if (LLStartUp::shouldAutoLogin())
805 { 801 {
806 show_connect_box = false; 802 show_connect_box = false;
@@ -1113,7 +1109,6 @@ bool idle_startup()
1113 { 1109 {
1114 // Force login at the last location 1110 // Force login at the last location
1115 agent_location_id = START_LOCATION_ID_LAST; 1111 agent_location_id = START_LOCATION_ID_LAST;
1116 location_which = START_LOCATION_ID_LAST;
1117 gSavedSettings.setBOOL("LoginLastLocation", FALSE); 1112 gSavedSettings.setBOOL("LoginLastLocation", FALSE);
1118 1113
1119 // Clear some things that would cause us to divert to a user-specified location 1114 // Clear some things that would cause us to divert to a user-specified location
@@ -1125,21 +1120,14 @@ bool idle_startup()
1125 { 1120 {
1126 // a startup URL was specified 1121 // a startup URL was specified
1127 agent_location_id = START_LOCATION_ID_URL; 1122 agent_location_id = START_LOCATION_ID_URL;
1128
1129 // doesn't really matter what location_which is, since
1130 // agent_start_look_at will be overwritten when the
1131 // UserLoginLocationReply arrives
1132 location_which = START_LOCATION_ID_LAST;
1133 } 1123 }
1134 else if (gSavedSettings.getBOOL("LoginLastLocation")) 1124 else if (gSavedSettings.getBOOL("LoginLastLocation"))
1135 { 1125 {
1136 agent_location_id = START_LOCATION_ID_LAST; // last location 1126 agent_location_id = START_LOCATION_ID_LAST; // last location
1137 location_which = START_LOCATION_ID_LAST;
1138 } 1127 }
1139 else 1128 else
1140 { 1129 {
1141 agent_location_id = START_LOCATION_ID_HOME; // home 1130 agent_location_id = START_LOCATION_ID_HOME; // home
1142 location_which = START_LOCATION_ID_HOME;
1143 } 1131 }
1144 1132
1145 gViewerWindow->getWindow()->setCursor(UI_CURSOR_WAIT); 1133 gViewerWindow->getWindow()->setCursor(UI_CURSOR_WAIT);
@@ -1785,11 +1773,11 @@ bool idle_startup()
1785 if((*it).second == "N") gAgent.setFirstLogin(TRUE); 1773 if((*it).second == "N") gAgent.setFirstLogin(TRUE);
1786 else gAgent.setFirstLogin(FALSE); 1774 else gAgent.setFirstLogin(FALSE);
1787 } 1775 }
1788 it = options[0].find("stipend_since_login"); 1776 //it = options[0].find("stipend_since_login");
1789 if(it != no_flag) 1777 //if(it != no_flag)
1790 { 1778 //{
1791 if((*it).second == "Y") stipend_since_login = true; 1779 // if((*it).second == "Y") stipend_since_login = true;
1792 } 1780 //}
1793 it = options[0].find("gendered"); 1781 it = options[0].find("gendered");
1794 if(it != no_flag) 1782 if(it != no_flag)
1795 { 1783 {