diff options
Diffstat (limited to 'linden/indra/newview/llstartup.cpp')
-rw-r--r-- | linden/indra/newview/llstartup.cpp | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/linden/indra/newview/llstartup.cpp b/linden/indra/newview/llstartup.cpp index dcaa249..bbb942f 100644 --- a/linden/indra/newview/llstartup.cpp +++ b/linden/indra/newview/llstartup.cpp | |||
@@ -1168,19 +1168,24 @@ bool idle_startup() | |||
1168 | // color init must be after saved settings loaded | 1168 | // color init must be after saved settings loaded |
1169 | init_colors(); | 1169 | init_colors(); |
1170 | 1170 | ||
1171 | if (!gSavedSettings.getBOOL("EnableVoiceChat") || | 1171 | // skipping over STATE_LOGIN_VOICE_LICENSE since we don't need it |
1172 | (gSavedSettings.getBOOL("EnableVoiceChat") && gSavedSettings.getBOOL("VivoxLicenseAccepted")) || | 1172 | // skipping over STATE_UPDATE_CHECK because that just waits for input |
1173 | !gHippoGridManager->getConnectedGrid()->isSecondLife()) | 1173 | // We don't do this on non-SL grids either |
1174 | if (LLVoiceClient::needsVivoxLicense()) | ||
1174 | { | 1175 | { |
1175 | // skipping over STATE_LOGIN_VOICE_LICENSE since we don't need it | 1176 | if (gSavedSettings.getBOOL("EnableVoiceChat")) |
1176 | // skipping over STATE_UPDATE_CHECK because that just waits for input | 1177 | { |
1177 | // We don't do this on non-SL grids either | 1178 | LLStartUp::setStartupState(STATE_LOGIN_VOICE_LICENSE); |
1178 | LLStartUp::setStartupState( STATE_LOGIN_AUTH_INIT ); | 1179 | LLFirstUse::voiceLicenseAgreement(); |
1180 | } | ||
1181 | else | ||
1182 | { | ||
1183 | LLStartUp::setStartupState(STATE_LOGIN_AUTH_INIT); | ||
1184 | } | ||
1179 | } | 1185 | } |
1180 | else | 1186 | else |
1181 | { | 1187 | { |
1182 | LLStartUp::setStartupState(STATE_LOGIN_VOICE_LICENSE); | 1188 | LLStartUp::setStartupState(STATE_LOGIN_AUTH_INIT); |
1183 | LLFirstUse::voiceLicenseAgreement(); | ||
1184 | } | 1189 | } |
1185 | 1190 | ||
1186 | return FALSE; | 1191 | return FALSE; |