diff options
Diffstat (limited to 'linden/indra/newview/llstartup.cpp')
-rw-r--r-- | linden/indra/newview/llstartup.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/linden/indra/newview/llstartup.cpp b/linden/indra/newview/llstartup.cpp index 8882773..30e299a 100644 --- a/linden/indra/newview/llstartup.cpp +++ b/linden/indra/newview/llstartup.cpp | |||
@@ -1791,8 +1791,13 @@ bool idle_startup() | |||
1791 | regionp->setSeedCapability(first_sim_seed_cap); | 1791 | regionp->setSeedCapability(first_sim_seed_cap); |
1792 | LL_DEBUGS("AppInit") << "Waiting for seed grant ...." << LL_ENDL; | 1792 | LL_DEBUGS("AppInit") << "Waiting for seed grant ...." << LL_ENDL; |
1793 | 1793 | ||
1794 | // Set agent's initial region to be the one we just created. | 1794 | // Set agent's initial region to be the one we just created |
1795 | gAgent.setRegion(regionp); | 1795 | // Only if we don't already have one set. We want to catch this here |
1796 | // because setRegion calls removeRegion, which kills the viewer -- MC | ||
1797 | if (!gAgent.getRegion() && gAgent.getRegion() != regionp) | ||
1798 | { | ||
1799 | gAgent.setRegion(regionp); | ||
1800 | } | ||
1796 | 1801 | ||
1797 | // Set agent's initial position, which will be read by LLVOAvatar when the avatar | 1802 | // Set agent's initial position, which will be read by LLVOAvatar when the avatar |
1798 | // object is created. I think this must be done after setting the region. JC | 1803 | // object is created. I think this must be done after setting the region. JC |
@@ -2095,7 +2100,7 @@ bool idle_startup() | |||
2095 | if (STATE_AGENT_WAIT == LLStartUp::getStartupState()) | 2100 | if (STATE_AGENT_WAIT == LLStartUp::getStartupState()) |
2096 | { | 2101 | { |
2097 | LL_DEBUGS("AppInitStartupState") << "STATE_AGENT_WAIT" << LL_ENDL; | 2102 | LL_DEBUGS("AppInitStartupState") << "STATE_AGENT_WAIT" << LL_ENDL; |
2098 | if (connecting_region_timer.getElapsedTimeF32() > 15.0f) | 2103 | if (connecting_region_timer.getElapsedTimeF32() > 10.0f) |
2099 | { | 2104 | { |
2100 | // Bounce back to the login screen -- MC | 2105 | // Bounce back to the login screen -- MC |
2101 | LL_WARNS("AppInit") << "Bad login - can't connect to this region for some reason" << LL_ENDL; | 2106 | LL_WARNS("AppInit") << "Bad login - can't connect to this region for some reason" << LL_ENDL; |
@@ -3596,6 +3601,7 @@ std::string LLStartUp::startupStateToString(EStartupState state) | |||
3596 | #define RTNENUM(E) case E: return #E | 3601 | #define RTNENUM(E) case E: return #E |
3597 | switch(state){ | 3602 | switch(state){ |
3598 | RTNENUM( STATE_FIRST ); | 3603 | RTNENUM( STATE_FIRST ); |
3604 | RTNENUM( STATE_BROWSER_INIT ); | ||
3599 | RTNENUM( STATE_LOGIN_SHOW ); | 3605 | RTNENUM( STATE_LOGIN_SHOW ); |
3600 | RTNENUM( STATE_LOGIN_WAIT ); | 3606 | RTNENUM( STATE_LOGIN_WAIT ); |
3601 | RTNENUM( STATE_LOGIN_CLEANUP ); | 3607 | RTNENUM( STATE_LOGIN_CLEANUP ); |
@@ -3606,6 +3612,7 @@ std::string LLStartUp::startupStateToString(EStartupState state) | |||
3606 | RTNENUM( STATE_LOGIN_DOWNLOADING ); | 3612 | RTNENUM( STATE_LOGIN_DOWNLOADING ); |
3607 | RTNENUM( STATE_LOGIN_PROCESS_RESPONSE ); | 3613 | RTNENUM( STATE_LOGIN_PROCESS_RESPONSE ); |
3608 | RTNENUM( STATE_WORLD_INIT ); | 3614 | RTNENUM( STATE_WORLD_INIT ); |
3615 | RTNENUM( STATE_MULTIMEDIA_INIT ); | ||
3609 | RTNENUM( STATE_SEED_GRANTED_WAIT ); | 3616 | RTNENUM( STATE_SEED_GRANTED_WAIT ); |
3610 | RTNENUM( STATE_SEED_CAP_GRANTED ); | 3617 | RTNENUM( STATE_SEED_CAP_GRANTED ); |
3611 | RTNENUM( STATE_WORLD_WAIT ); | 3618 | RTNENUM( STATE_WORLD_WAIT ); |