De-hardcode default home locations on create user (standalone).

remotes/origin/0.6.7-post-fixes
Diva Canto 2009-09-09 11:02:31 -07:00
parent 0cdec1fbc3
commit 5bf288745d
1 changed files with 8 additions and 0 deletions

View File

@ -1042,6 +1042,14 @@ namespace OpenSim
uint regX = 1000;
uint regY = 1000;
IConfig standalone;
if ((standalone = m_config.Source.Configs["StandAlone"]) != null)
{
regX = (uint)standalone.GetInt("default_location_x", (int)regX);
regY = (uint)standalone.GetInt("default_location_y", (int)regY);
}
if (cmdparams.Length < 3)
firstName = MainConsole.Instance.CmdPrompt("First name", "Default");
else firstName = cmdparams[2];