terraforming changes: try recover llmodifyland previus behaviur
parent
ee68085628
commit
38a77a8bb5
|
@ -517,9 +517,11 @@ namespace OpenSim.Region.CoreModules.World.Terrain
|
||||||
public void ModifyTerrain(UUID user, Vector3 pos, byte size, byte action)
|
public void ModifyTerrain(UUID user, Vector3 pos, byte size, byte action)
|
||||||
{
|
{
|
||||||
float duration = 0.25f;
|
float duration = 0.25f;
|
||||||
float brushSize = size + 1;
|
float brushSize;
|
||||||
if (brushSize > 2)
|
if(action == (byte)StandardTerrainEffects.Lower || action == (byte)StandardTerrainEffects.Raise)
|
||||||
brushSize = 4;
|
brushSize = (int)(Math.Pow(2, size) + 0.5);
|
||||||
|
else
|
||||||
|
brushSize = (size + 1) * 1.35f;
|
||||||
|
|
||||||
client_OnModifyTerrain(user, pos.Z, duration, brushSize, action, pos.Y, pos.X, pos.Y, pos.X, -1);
|
client_OnModifyTerrain(user, pos.Z, duration, brushSize, action, pos.Y, pos.X, pos.Y, pos.X, -1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue