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) 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);
} }