Don't register a region twice on both official registration and maptile regeneration.

Maptile storage appears orthogonal to region registration
This commit is contained in:
Justin Clark-Casey (justincc)
2011-11-19 00:07:34 +00:00
parent f72c4bdba5
commit 01ae916bad
4 changed files with 11 additions and 8 deletions

View File

@@ -5017,18 +5017,16 @@ namespace OpenSim.Region.Framework.Scenes
return offsets.ToArray();
}
/// <summary>
/// Regenerate the maptile for this scene.
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
public void RegenerateMaptile(object sender, ElapsedEventArgs e)
{
IWorldMapModule mapModule = RequestModuleInterface<IWorldMapModule>();
if (mapModule != null)
{
mapModule.GenerateMaptile();
string error = GridService.RegisterRegion(RegionInfo.ScopeID, new GridRegion(RegionInfo));
if (error != String.Empty)
throw new Exception(error);
}
}
// This method is called across the simulation connector to