Merge branch 'future' of git://github.com/siana/SingularityViewer.git into BatchIndexing
Conflicts: indra/newview/hippopanelgrids.cpp indra/newview/llstartup.cpp indra/newview/llsurface.cpp indra/newview/llviewermessage.cpp indra/newview/llviewerparceloverlay.cpp indra/newview/llviewertexturelist.cpp indra/newview/llworld.cpp
This commit is contained in:
@@ -372,6 +372,8 @@ bool idle_startup()
|
||||
static U64 first_sim_handle = 0;
|
||||
static LLHost first_sim;
|
||||
static std::string first_sim_seed_cap;
|
||||
static U32 first_sim_size_x = 256;
|
||||
static U32 first_sim_size_y = 256;
|
||||
|
||||
static LLVector3 initial_sun_direction(1.f, 0.f, 0.f);
|
||||
static LLVector3 agent_start_position_region(10.f, 10.f, 10.f); // default for when no space server
|
||||
@@ -1588,7 +1590,7 @@ bool idle_startup()
|
||||
std::string history_file = gDirUtilp->getExpandedFilename(LL_PATH_USER_SETTINGS, "saved_logins_sg2.xml");
|
||||
|
||||
LLSavedLogins history_data = LLSavedLogins::loadFile(history_file);
|
||||
std::string grid_nick = gHippoGridManager->getConnectedGrid()->getGridNick();
|
||||
std::string grid_nick = gHippoGridManager->getConnectedGrid()->getGridName();
|
||||
history_data.deleteEntry(firstname, lastname, grid_nick);
|
||||
if (gSavedSettings.getBOOL("RememberLogin"))
|
||||
{
|
||||
@@ -1659,7 +1661,17 @@ bool idle_startup()
|
||||
U32 region_y = strtoul(region_y_str.c_str(), NULL, 10);
|
||||
first_sim_handle = to_region_handle(region_x, region_y);
|
||||
}
|
||||
|
||||
|
||||
text = LLUserAuth::getInstance()->getResponse("region_size_x");
|
||||
if(!text.empty()) {
|
||||
first_sim_size_x = strtoul(text.c_str(), NULL, 10);
|
||||
LLViewerParcelMgr::getInstance()->init(first_sim_size_x);
|
||||
}
|
||||
|
||||
//region Y size is currently unused, major refactoring required. - Patrick Sapinski (2/10/2011)
|
||||
text = LLUserAuth::getInstance()->getResponse("region_size_y");
|
||||
if(!text.empty()) first_sim_size_y = strtoul(text.c_str(), NULL, 10);
|
||||
|
||||
const std::string look_at_str = LLUserAuth::getInstance()->getResponse("look_at");
|
||||
if (!look_at_str.empty())
|
||||
{
|
||||
@@ -1787,7 +1799,6 @@ bool idle_startup()
|
||||
{
|
||||
gSavedSettings.setString("MapServerURL", map_server_url);
|
||||
LLWorldMap::gotMapServerURL(true);
|
||||
llinfos << "Got Map server URL: " << map_server_url << llendl;
|
||||
}
|
||||
|
||||
// Override grid info with anything sent in the login response
|
||||
@@ -1946,7 +1957,7 @@ bool idle_startup()
|
||||
|
||||
gAgent.initOriginGlobal(from_region_handle(first_sim_handle));
|
||||
|
||||
LLWorld::getInstance()->addRegion(first_sim_handle, first_sim);
|
||||
LLWorld::getInstance()->addRegion(first_sim_handle, first_sim, first_sim_size_x, first_sim_size_y);
|
||||
|
||||
LLViewerRegion *regionp = LLWorld::getInstance()->getRegionFromHandle(first_sim_handle);
|
||||
LL_INFOS("AppInit") << "Adding initial simulator " << regionp->getOriginGlobal() << LL_ENDL;
|
||||
|
||||
Reference in New Issue
Block a user