aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs
diff options
context:
space:
mode:
authorAdam Frisby2007-07-24 05:38:21 +0000
committerAdam Frisby2007-07-24 05:38:21 +0000
commitb9af2fe393d92b8bd8b30025e0c66aa0d031f52b (patch)
tree6e4e42b6c470f203e3d0c2bd12f68d59bd0c1d0d /OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs
parent* Small fix, patch values should be multiplied by their size (16) (diff)
downloadopensim-SC_OLD-b9af2fe393d92b8bd8b30025e0c66aa0d031f52b.zip
opensim-SC_OLD-b9af2fe393d92b8bd8b30025e0c66aa0d031f52b.tar.gz
opensim-SC_OLD-b9af2fe393d92b8bd8b30025e0c66aa0d031f52b.tar.bz2
opensim-SC_OLD-b9af2fe393d92b8bd8b30025e0c66aa0d031f52b.tar.xz
* SendLayerData overload including coords now uses patch number rather than coords directly.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs9
1 files changed, 3 insertions, 6 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs b/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs
index 126b636..571cead 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs
@@ -58,32 +58,26 @@ namespace OpenSim.Region.Environment.Scenes
58 case 0: 58 case 0:
59 // flatten terrain 59 // flatten terrain
60 Terrain.FlattenTerrain(north, west, size, (double)seconds / 5.0); 60 Terrain.FlattenTerrain(north, west, size, (double)seconds / 5.0);
61 RegenerateTerrain(true, (int)north, (int)west);
62 break; 61 break;
63 case 1: 62 case 1:
64 // raise terrain 63 // raise terrain
65 Terrain.RaiseTerrain(north, west, size, (double)seconds / 5.0); 64 Terrain.RaiseTerrain(north, west, size, (double)seconds / 5.0);
66 RegenerateTerrain(true, (int)north, (int)west);
67 break; 65 break;
68 case 2: 66 case 2:
69 //lower terrain 67 //lower terrain
70 Terrain.LowerTerrain(north, west, size, (double)seconds / 5.0); 68 Terrain.LowerTerrain(north, west, size, (double)seconds / 5.0);
71 RegenerateTerrain(true, (int)north, (int)west);
72 break; 69 break;
73 case 3: 70 case 3:
74 // smooth terrain 71 // smooth terrain
75 Terrain.SmoothTerrain(north, west, size, (double)seconds / 5.0); 72 Terrain.SmoothTerrain(north, west, size, (double)seconds / 5.0);
76 RegenerateTerrain(true, (int)north, (int)west);
77 break; 73 break;
78 case 4: 74 case 4:
79 // noise 75 // noise
80 Terrain.NoiseTerrain(north, west, size, (double)seconds / 5.0); 76 Terrain.NoiseTerrain(north, west, size, (double)seconds / 5.0);
81 RegenerateTerrain(true, (int)north, (int)west);
82 break; 77 break;
83 case 5: 78 case 5:
84 // revert 79 // revert
85 Terrain.RevertTerrain(north, west, size, (double)seconds / 5.0); 80 Terrain.RevertTerrain(north, west, size, (double)seconds / 5.0);
86 RegenerateTerrain(true, (int)north, (int)west);
87 break; 81 break;
88 82
89 // CLIENT EXTENSIONS GO HERE 83 // CLIENT EXTENSIONS GO HERE
@@ -97,6 +91,9 @@ namespace OpenSim.Region.Environment.Scenes
97 // erode-hydraulic 91 // erode-hydraulic
98 break; 92 break;
99 } 93 }
94
95 RegenerateTerrain(true, (int)(north / 16.0f), (int)(west / 16.0f));
96
100 return; 97 return;
101 } 98 }
102 99