0.1-prestable
parent
020fe9a214
commit
8c5b51b7c0
|
@ -214,9 +214,7 @@ namespace OpenSim
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
private class AssetTransaction
|
||||||
|
|
||||||
public class AssetTransaction
|
|
||||||
{
|
{
|
||||||
public uint XferID;
|
public uint XferID;
|
||||||
public AssetBase Asset;
|
public AssetBase Asset;
|
||||||
|
@ -231,3 +229,4 @@ namespace OpenSim
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -426,6 +426,8 @@ namespace OpenSim
|
||||||
break;
|
break;
|
||||||
case PacketType.ModifyLand:
|
case PacketType.ModifyLand:
|
||||||
ModifyLandPacket modify = (ModifyLandPacket)Pack;
|
ModifyLandPacket modify = (ModifyLandPacket)Pack;
|
||||||
|
//Console.WriteLine("terraform: number of parcel data blocks" + modify.ParcelData.Length);
|
||||||
|
|
||||||
switch (modify.ModifyBlock.Action)
|
switch (modify.ModifyBlock.Action)
|
||||||
{
|
{
|
||||||
case 1:
|
case 1:
|
||||||
|
@ -433,11 +435,14 @@ namespace OpenSim
|
||||||
{
|
{
|
||||||
int mody = (int) modify.ParcelData[0].North;
|
int mody = (int) modify.ParcelData[0].North;
|
||||||
int modx = (int) modify.ParcelData[0].West;
|
int modx = (int) modify.ParcelData[0].West;
|
||||||
this.m_world.LandMap[(mody * 256) + modx -1 ] += 0.1f;
|
// Console.WriteLine("height in packet is " + modify.ModifyBlock.Height.ToString());
|
||||||
this.m_world.LandMap[(mody * 256) + modx] += 0.2f;
|
// Console.WriteLine("current height at that point is " + this.m_world.LandMap[(mody * 256) + modx].ToString());
|
||||||
this.m_world.LandMap[(mody * 256) + modx + 1] += 0.1f;
|
|
||||||
this.m_world.LandMap[((mody+1) * 256) + modx] += 0.1f;
|
this.m_world.LandMap[(mody * 256) + modx -1 ] += 0.05f;
|
||||||
this.m_world.LandMap[((mody -1) * 256) + modx] += 0.1f;
|
this.m_world.LandMap[(mody * 256) + modx] += 0.1f;
|
||||||
|
this.m_world.LandMap[(mody * 256) + modx + 1] += 0.05f;
|
||||||
|
this.m_world.LandMap[((mody+1) * 256) + modx] += 0.05f;
|
||||||
|
this.m_world.LandMap[((mody -1) * 256) + modx] += 0.05f;
|
||||||
m_world.RegenerateTerrain(true, modx, mody);
|
m_world.RegenerateTerrain(true, modx, mody);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -446,11 +451,14 @@ namespace OpenSim
|
||||||
{
|
{
|
||||||
int mody = (int)modify.ParcelData[0].North;
|
int mody = (int)modify.ParcelData[0].North;
|
||||||
int modx = (int)modify.ParcelData[0].West;
|
int modx = (int)modify.ParcelData[0].West;
|
||||||
this.m_world.LandMap[(mody * 256) + modx - 1] -= 0.1f;
|
// Console.WriteLine("height in packet is " + modify.ModifyBlock.Height.ToString());
|
||||||
this.m_world.LandMap[(mody * 256) + modx] -= 0.2f;
|
// Console.WriteLine("current height at that point is " + this.m_world.LandMap[(mody * 256) + modx].ToString());
|
||||||
this.m_world.LandMap[(mody * 256) + modx + 1] -= 0.1f;
|
|
||||||
this.m_world.LandMap[((mody + 1) * 256) + modx] -= 0.1f;
|
this.m_world.LandMap[(mody * 256) + modx - 1] -= 0.05f;
|
||||||
this.m_world.LandMap[((mody - 1) * 256) + modx] -= 0.1f;
|
this.m_world.LandMap[(mody * 256) + modx] -= 0.1f;
|
||||||
|
this.m_world.LandMap[(mody * 256) + modx + 1] -= 0.05f;
|
||||||
|
this.m_world.LandMap[((mody + 1) * 256) + modx] -= 0.05f;
|
||||||
|
this.m_world.LandMap[((mody - 1) * 256) + modx] -= 0.05f;
|
||||||
m_world.RegenerateTerrain(true, modx, mody);
|
m_world.RegenerateTerrain(true, modx, mody);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue