terraforming changes: try recover llmodifyland previus behaviur

0.9.1.1
UbitUmarov 2019-11-10 21:12:52 +00:00
parent ee68085628
commit 38a77a8bb5
1 changed files with 5 additions and 3 deletions

View File

@ -517,9 +517,11 @@ namespace OpenSim.Region.CoreModules.World.Terrain
public void ModifyTerrain(UUID user, Vector3 pos, byte size, byte action)
{
float duration = 0.25f;
float brushSize = size + 1;
if (brushSize > 2)
brushSize = 4;
float brushSize;
if(action == (byte)StandardTerrainEffects.Lower || action == (byte)StandardTerrainEffects.Raise)
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);
}