diff options
author | Merov Linden <merov@lindenlab.com> | 2010-12-20 12:59:17 -0800 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2010-12-20 12:59:17 -0800 |
commit | 36207fcf1a16c66a5b831af31e524fc44060c2c8 (patch) | |
tree | 0dcdd6434ba1ce353dd3b04bd092f890ed5c4b49 /indra/newview/llstartup.cpp | |
parent | 25eef545fd7f6513ae4c590126aef1dc06494f56 (diff) |
STORM-805 : Fix the map URL
Diffstat (limited to 'indra/newview/llstartup.cpp')
-rw-r--r-- | indra/newview/llstartup.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/indra/newview/llstartup.cpp b/indra/newview/llstartup.cpp index d945af0776..cc2cf0d66f 100644 --- a/indra/newview/llstartup.cpp +++ b/indra/newview/llstartup.cpp @@ -3095,7 +3095,14 @@ bool process_login_success_response() std::string map_server_url = response["map-server-url"]; if(!map_server_url.empty()) { - gSavedSettings.setString("MapServerURL", map_server_url); + // We got an answer from the grid -> use that for map for the current session + gSavedSettings.setString("CurrentMapServerURL", map_server_url); + } + else + { + // No answer from the grid -> use the default setting for current session + map_server_url = gSavedSettings.getString("MapServerURL"); + gSavedSettings.setString("CurrentMapServerURL", map_server_url); } // Default male and female avatars allowing the user to choose their avatar on first login. |