diff options
author | Jeff Ames | 2008-03-17 17:23:49 +0000 |
---|---|---|
committer | Jeff Ames | 2008-03-17 17:23:49 +0000 |
commit | 7d1dcf3e68372a0692615c19ade95365ed633fcf (patch) | |
tree | 007138f9653de6baad72e1cd4e0bc826851e522b /OpenSim/Region/ClientStack/ClientView.cs | |
parent | Replaced some Console.WriteLine calls with writes to log. (diff) | |
download | opensim-SC_OLD-7d1dcf3e68372a0692615c19ade95365ed633fcf.zip opensim-SC_OLD-7d1dcf3e68372a0692615c19ade95365ed633fcf.tar.gz opensim-SC_OLD-7d1dcf3e68372a0692615c19ade95365ed633fcf.tar.bz2 opensim-SC_OLD-7d1dcf3e68372a0692615c19ade95365ed633fcf.tar.xz |
Replaced some magic PCode numbers with enum values.
Diffstat (limited to 'OpenSim/Region/ClientStack/ClientView.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/ClientView.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.cs b/OpenSim/Region/ClientStack/ClientView.cs index d53201f..15540ea 100644 --- a/OpenSim/Region/ClientStack/ClientView.cs +++ b/OpenSim/Region/ClientStack/ClientView.cs | |||
@@ -2126,7 +2126,7 @@ namespace OpenSim.Region.ClientStack | |||
2126 | SetDefaultPrimPacketValues(objupdate); | 2126 | SetDefaultPrimPacketValues(objupdate); |
2127 | objupdate.UpdateFlags = flags; | 2127 | objupdate.UpdateFlags = flags; |
2128 | SetPrimPacketShapeData(objupdate, primShape); | 2128 | SetPrimPacketShapeData(objupdate, primShape); |
2129 | // if ((primShape.PCode == 111) || (primShape.PCode == 255)) | 2129 | |
2130 | if ((primShape.PCode == (byte)PCode.NewTree) || (primShape.PCode == (byte)PCode.Tree) || (primShape.PCode == (byte)PCode.Grass)) | 2130 | if ((primShape.PCode == (byte)PCode.NewTree) || (primShape.PCode == (byte)PCode.Tree) || (primShape.PCode == (byte)PCode.Grass)) |
2131 | { | 2131 | { |
2132 | objupdate.Data = new byte[1]; | 2132 | objupdate.Data = new byte[1]; |
@@ -2206,7 +2206,7 @@ namespace OpenSim.Region.ClientStack | |||
2206 | objdata.ParentID = 0; | 2206 | objdata.ParentID = 0; |
2207 | objdata.OwnerID = LLUUID.Zero; | 2207 | objdata.OwnerID = LLUUID.Zero; |
2208 | objdata.Scale = new LLVector3(1, 1, 1); | 2208 | objdata.Scale = new LLVector3(1, 1, 1); |
2209 | objdata.PCode = 47; | 2209 | objdata.PCode = (byte)PCode.Avatar; |
2210 | if (textureEntry != null) | 2210 | if (textureEntry != null) |
2211 | { | 2211 | { |
2212 | objdata.TextureEntry = textureEntry; | 2212 | objdata.TextureEntry = textureEntry; |