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.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/linden/indra/newview/llstartup.cpp b/linden/indra/newview/llstartup.cpp
index 5a3a8ee..0b6d75f 100644
--- a/linden/indra/newview/llstartup.cpp
+++ b/linden/indra/newview/llstartup.cpp
@@ -368,6 +368,8 @@ bool idle_startup()
368 static U64 first_sim_handle = 0; 368 static U64 first_sim_handle = 0;
369 static LLHost first_sim; 369 static LLHost first_sim;
370 static std::string first_sim_seed_cap; 370 static std::string first_sim_seed_cap;
371 static U32 first_sim_size_x = 256;
372 static U32 first_sim_size_y = 256;
371 373
372 static LLVector3 initial_sun_direction(1.f, 0.f, 0.f); 374 static LLVector3 initial_sun_direction(1.f, 0.f, 0.f);
373 static LLVector3 agent_start_position_region(10.f, 10.f, 10.f); // default for when no space server 375 static LLVector3 agent_start_position_region(10.f, 10.f, 10.f); // default for when no space server
@@ -1620,6 +1622,16 @@ bool idle_startup()
1620 first_sim_handle = to_region_handle(region_x, region_y); 1622 first_sim_handle = to_region_handle(region_x, region_y);
1621 } 1623 }
1622 1624
1625 text = LLUserAuth::getInstance()->getResponse("region_size_x");
1626 if(!text.empty()) {
1627 first_sim_size_x = strtoul(text.c_str(), NULL, 10);
1628 LLViewerParcelMgr::getInstance()->init(first_sim_size_x);
1629 }
1630
1631 //region Y size is currently unused, major refactoring required. - Patrick Sapinski (2/10/2011)
1632 text = LLUserAuth::getInstance()->getResponse("region_size_y");
1633 if(!text.empty()) first_sim_size_y = strtoul(text.c_str(), NULL, 10);
1634
1623 const std::string look_at_str = LLUserAuth::getInstance()->getResponse("look_at"); 1635 const std::string look_at_str = LLUserAuth::getInstance()->getResponse("look_at");
1624 if (!look_at_str.empty()) 1636 if (!look_at_str.empty())
1625 { 1637 {
@@ -1915,7 +1927,7 @@ bool idle_startup()
1915 1927
1916 gAgent.initOriginGlobal(from_region_handle(first_sim_handle)); 1928 gAgent.initOriginGlobal(from_region_handle(first_sim_handle));
1917 1929
1918 LLWorld::getInstance()->addRegion(first_sim_handle, first_sim); 1930 LLWorld::getInstance()->addRegion(first_sim_handle, first_sim, first_sim_size_x, first_sim_size_y);
1919 1931
1920 LLViewerRegion *regionp = LLWorld::getInstance()->getRegionFromHandle(first_sim_handle); 1932 LLViewerRegion *regionp = LLWorld::getInstance()->getRegionFromHandle(first_sim_handle);
1921 LL_INFOS("AppInit") << "Adding initial simulator " << regionp->getOriginGlobal() << LL_ENDL; 1933 LL_INFOS("AppInit") << "Adding initial simulator " << regionp->getOriginGlobal() << LL_ENDL;