* Establishing why new console commands fail to work. >_>

remotes/origin/0.6.7-post-fixes
Adam Frisby 2009-09-24 21:46:41 +10:00
parent 57429423bb
commit 8605c5d2eb
1 changed files with 6 additions and 4 deletions

View File

@ -852,10 +852,11 @@ namespace OpenSim.Region.CoreModules.World.Estate
int x = (args.Length > 5 ? int.Parse(args[5]) : -1);
int y = (args.Length > 6 ? int.Parse(args[6]) : -1);
if (x != -1 && m_scene.RegionInfo.RegionLocX != x)
if (x == -1 || m_scene.RegionInfo.RegionLocX == x)
{
if (y != -1 && m_scene.RegionInfo.RegionLocY != y)
if (y == -1 || m_scene.RegionInfo.RegionLocY == y)
{
m_log.Debug("[ESTATEMODULE] Setting terrain textures for " + m_scene.RegionInfo.RegionName);
setEstateTerrainBaseTexture(null, int.Parse(num), UUID.Parse(uuid));
}
}
@ -869,10 +870,11 @@ namespace OpenSim.Region.CoreModules.World.Estate
int x = (args.Length > 6 ? int.Parse(args[6]) : -1);
int y = (args.Length > 7 ? int.Parse(args[7]) : -1);
if (x != -1 && m_scene.RegionInfo.RegionLocX != x)
if (x == -1 || m_scene.RegionInfo.RegionLocX == x)
{
if (y != -1 && m_scene.RegionInfo.RegionLocY != y)
if (y == -1 || m_scene.RegionInfo.RegionLocY == y)
{
m_log.Debug("[ESTATEMODULE] Setting terrain heights " + m_scene.RegionInfo.RegionName);
setEstateTerrainTextureHeights(null, int.Parse(num), float.Parse(min), float.Parse(max));
}
}