aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.RegionServer
diff options
context:
space:
mode:
authorMW2007-04-06 19:08:24 +0000
committerMW2007-04-06 19:08:24 +0000
commit0311fef2447217fb87111835d82654cdc6c6dd31 (patch)
tree807f294533592c850794ee23377017a8085c0fb5 /OpenSim.RegionServer
parentAdded getHeights1D() function to TerrainEngine (diff)
downloadopensim-SC-0311fef2447217fb87111835d82654cdc6c6dd31.zip
opensim-SC-0311fef2447217fb87111835d82654cdc6c6dd31.tar.gz
opensim-SC-0311fef2447217fb87111835d82654cdc6c6dd31.tar.bz2
opensim-SC-0311fef2447217fb87111835d82654cdc6c6dd31.tar.xz
Now back to compiling, just no terrain generation at the moment
Diffstat (limited to '')
-rw-r--r--OpenSim.RegionServer/OpenSimMain.cs2
-rw-r--r--OpenSim.RegionServer/world/World.cs10
2 files changed, 6 insertions, 6 deletions
diff --git a/OpenSim.RegionServer/OpenSimMain.cs b/OpenSim.RegionServer/OpenSimMain.cs
index b159af0..fa5dfc2 100644
--- a/OpenSim.RegionServer/OpenSimMain.cs
+++ b/OpenSim.RegionServer/OpenSimMain.cs
@@ -156,7 +156,7 @@ namespace OpenSim
156 156
157 m_console.WriteLine("Main.cs:Startup() - Starting up messaging system"); 157 m_console.WriteLine("Main.cs:Startup() - Starting up messaging system");
158 LocalWorld.PhysScene = this.physManager.GetPhysicsScene(this.m_physicsEngine); //should be reading from the config file what physics engine to use 158 LocalWorld.PhysScene = this.physManager.GetPhysicsScene(this.m_physicsEngine); //should be reading from the config file what physics engine to use
159 LocalWorld.PhysScene.SetTerrain(LocalWorld.Terrain.map); 159 LocalWorld.PhysScene.SetTerrain(LocalWorld.Terrain.getHeights1D());
160 160
161 //should be passing a IGenericConfig object to these so they can read the config data they want from it 161 //should be passing a IGenericConfig object to these so they can read the config data they want from it
162 GridServers.AssetServer.SetServerInfo(regionData.AssetURL, regionData.AssetSendKey); 162 GridServers.AssetServer.SetServerInfo(regionData.AssetURL, regionData.AssetSendKey);
diff --git a/OpenSim.RegionServer/world/World.cs b/OpenSim.RegionServer/world/World.cs
index c23ac2d..73c04d8 100644
--- a/OpenSim.RegionServer/world/World.cs
+++ b/OpenSim.RegionServer/world/World.cs
@@ -195,7 +195,7 @@ namespace OpenSim.world
195 195
196 lock (this.LockPhysicsEngine) 196 lock (this.LockPhysicsEngine)
197 { 197 {
198 this.phyScene.SetTerrain(Terrain.map); 198 this.phyScene.SetTerrain(Terrain.getHeights1D());
199 } 199 }
200 this.localStorage.SaveMap(this.Terrain.map); 200 this.localStorage.SaveMap(this.Terrain.map);
201 201
@@ -215,7 +215,7 @@ namespace OpenSim.world
215 this.Terrain.map = newMap; 215 this.Terrain.map = newMap;
216 lock (this.LockPhysicsEngine) 216 lock (this.LockPhysicsEngine)
217 { 217 {
218 this.phyScene.SetTerrain(this.Terrain.map); 218 this.phyScene.SetTerrain(this.Terrain.getHeights1D());
219 } 219 }
220 this.localStorage.SaveMap(this.Terrain.map); 220 this.localStorage.SaveMap(this.Terrain.map);
221 221
@@ -236,7 +236,7 @@ namespace OpenSim.world
236 { 236 {
237 lock (this.LockPhysicsEngine) 237 lock (this.LockPhysicsEngine)
238 { 238 {
239 this.phyScene.SetTerrain(this.Terrain.map); 239 this.phyScene.SetTerrain(this.Terrain.getHeights1D());
240 } 240 }
241 this.localStorage.SaveMap(this.Terrain.map); 241 this.localStorage.SaveMap(this.Terrain.map);
242 242
@@ -290,7 +290,7 @@ namespace OpenSim.world
290 patches[2] = x + 2 + y * 16; 290 patches[2] = x + 2 + y * 16;
291 patches[3] = x + 3 + y * 16; 291 patches[3] = x + 3 + y * 16;
292 292
293 Packet layerpack = TerrainManager.CreateLandPacket(Terrain.map, patches); 293 Packet layerpack = TerrainManager.CreateLandPacket(Terrain.getHeights1D(), patches);
294 RemoteClient.OutPacket(layerpack); 294 RemoteClient.OutPacket(layerpack);
295 } 295 }
296 } 296 }
@@ -312,7 +312,7 @@ namespace OpenSim.world
312 //patches[2] = patchx + 2 + patchy * 16; 312 //patches[2] = patchx + 2 + patchy * 16;
313 //patches[3] = patchx + 3 + patchy * 16; 313 //patches[3] = patchx + 3 + patchy * 16;
314 314
315 Packet layerpack = TerrainManager.CreateLandPacket(Terrain.map, patches); 315 Packet layerpack = TerrainManager.CreateLandPacket(Terrain.getHeights1D(), patches);
316 RemoteClient.OutPacket(layerpack); 316 RemoteClient.OutPacket(layerpack);
317 } 317 }
318 318