Compare commits

...

6 Commits

Author SHA1 Message Date
Ubit Umarov
1d7235f864 Merge pull request #53 from holoneon/patch-7
Update MapSearchModule.cs
2026-08-07 10:42:42 +01:00
Ubit Umarov
7607ed99a0 Merge pull request #52 from amandaleeang/enforce-script-hasrun
Mark scripts as HasRun on every run (fix empty state on teleport)
2026-08-07 10:37:38 +01:00
Fiona Sweet
205b8c6018 Update MapSearchModule.cs
'data' isn't used, dead code.
2026-08-07 02:23:48 -07:00
Amanda Lee
6950500b87 Mark scripts as hasRun on event dispatch (fix empty state on teleport) 2026-08-07 13:36:46 +08:00
Ubit Umarov
4549b745c7 Merge pull request #50 from holoneon/patch-6
Update WorldMapModule.cs
2026-08-04 21:14:36 +01:00
Fiona Sweet
34cd0f8d23 Update WorldMapModule.cs
We currently can only have square regions, so this is incidental, but we have Region Size Y everywhere, and in config so probably should update here i suppose.
2026-08-04 12:35:55 -07:00
3 changed files with 6 additions and 5 deletions

View File

@@ -130,14 +130,10 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
//m_log.DebugFormat("[MAPSEARCHMODULE]: search {0} returned {1} regions", mapName, regionInfos.Count);
MapBlockData data;
if (regionInfos != null && regionInfos.Count > 0)
{
foreach (GridRegion info in regionInfos)
{
data = new MapBlockData();
data.Agents = 0;
data.Access = info.Access;
MapBlockData block = new MapBlockData();
MapBlockFromGridRegion(block, info, flags);

View File

@@ -172,7 +172,7 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
m_regionGlobalX = scene.RegionInfo.WorldLocX;
m_regionGlobalY = scene.RegionInfo.WorldLocY;
m_regionSizeX = scene.RegionInfo.RegionSizeX;
m_regionSizeY = scene.RegionInfo.RegionSizeX;
m_regionSizeY = scene.RegionInfo.RegionSizeY;
m_regionName = scene.RegionInfo.RegionName;
m_scene.RegisterModuleInterface<IWorldMapModule>(this);

View File

@@ -318,6 +318,9 @@ namespace OpenSim.Region.ScriptEngine.Yengine
m_LastRanAt = now;
m_InstEHSlice++;
callMode = CallMode_NORMAL;
// The script really executes here, so it has meaningful
// state to serialize — GetXMLState gates on this flag.
m_HasRun = true;
e = ResumeEx();
}
@@ -393,6 +396,8 @@ namespace OpenSim.Region.ScriptEngine.Yengine
m_DetectParams = evt.DetectParams;
m_LastRanAt = now;
m_InstEHEvent++;
// Starting a new event handler counts as "has run".
m_HasRun = true;
e = StartEventHandler(evc, evt.Params);
}