mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 20:55:43 +08:00
mantis 8583: update region information on Grid on map regeneration
This commit is contained in:
@@ -12163,7 +12163,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
}
|
||||
|
||||
m_lastMapRegenTime = Double.MaxValue;
|
||||
mapModule.GenerateMaptile();
|
||||
((Scene)Scene).RegenerateMaptileAndReregister(this, null);
|
||||
SendAlertMessage("Terrain map generated");
|
||||
m_lastMapRegenTime = now;
|
||||
}
|
||||
|
||||
@@ -1545,7 +1545,7 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
|
||||
if (consoleScene != null && consoleScene != m_scene)
|
||||
return;
|
||||
|
||||
GenerateMaptile();
|
||||
m_scene.RegenerateMaptileAndReregister(this, null);
|
||||
}
|
||||
|
||||
public OSD HandleRemoteMapItemRequest(string path, OSD request, string endpoint)
|
||||
|
||||
@@ -1040,7 +1040,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
{
|
||||
m_mapGenerationTimer.Interval = maptileRefresh * 1000;
|
||||
m_mapGenerationTimer.Elapsed += RegenerateMaptileAndReregister;
|
||||
m_mapGenerationTimer.AutoReset = true;
|
||||
m_mapGenerationTimer.AutoReset = false;
|
||||
m_mapGenerationTimer.Start();
|
||||
}
|
||||
}
|
||||
@@ -6026,7 +6026,9 @@ Environment.Exit(1);
|
||||
// so that all simulators can retrieve it
|
||||
string error = GridService.RegisterRegion(RegionInfo.ScopeID, new GridRegion(RegionInfo));
|
||||
if (error != string.Empty)
|
||||
throw new Exception(error);
|
||||
throw new Exception(error);
|
||||
if(m_generateMaptiles)
|
||||
m_mapGenerationTimer.Start();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user