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,8 +1451,9 @@ 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();
|
|
||||||
//ugly
|
bool[,] parcelmap = parcel.GetLandBitmap();
|
||||||
|
//ugly
|
||||||
for (x = startX; x <= endX; x++)
|
for (x = startX; x <= endX; x++)
|
||||||
{
|
{
|
||||||
int px = x >> 2;
|
int px = x >> 2;
|
||||||
|
@ -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