terrain: make sure modify does get unblocked
parent
61f918cbda
commit
103ebac082
|
@ -1336,6 +1336,8 @@ namespace OpenSim.Region.CoreModules.World.Terrain
|
||||||
if(now < NextModifyTerrainTime)
|
if(now < NextModifyTerrainTime)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
NextModifyTerrainTime = double.MaxValue; // block it
|
NextModifyTerrainTime = double.MaxValue; // block it
|
||||||
|
|
||||||
//m_log.DebugFormat("brushs {0} seconds {1} height {2}, parcel {3}", brushSize, seconds, height, parcelLocalID);
|
//m_log.DebugFormat("brushs {0} seconds {1} height {2}, parcel {3}", brushSize, seconds, height, parcelLocalID);
|
||||||
|
@ -1449,6 +1451,7 @@ namespace OpenSim.Region.CoreModules.World.Terrain
|
||||||
ILandObject parcel = m_scene.LandChannel.GetLandObject(parcelLocalID);
|
ILandObject parcel = m_scene.LandChannel.GetLandObject(parcelLocalID);
|
||||||
if(parcel == null)
|
if(parcel == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
bool[,] parcelmap = parcel.GetLandBitmap();
|
bool[,] parcelmap = parcel.GetLandBitmap();
|
||||||
//ugly
|
//ugly
|
||||||
for (x = startX; x <= endX; x++)
|
for (x = startX; x <= endX; x++)
|
||||||
|
@ -1485,8 +1488,12 @@ namespace OpenSim.Region.CoreModules.World.Terrain
|
||||||
m_log.Debug("Unknown terrain flood type " + action);
|
m_log.Debug("Unknown terrain flood type " + action);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
NextModifyTerrainTime = Util.GetTimeStamp() + 0.02; // 20ms cooldown
|
NextModifyTerrainTime = Util.GetTimeStamp() + 0.02; // 20ms cooldown
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void client_OnBakeTerrain(IClientAPI remoteClient)
|
private void client_OnBakeTerrain(IClientAPI remoteClient)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue