mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
* Terrain engine now knows the region coordinates - this can be later used to allow loading of single terrain files for multiple regions.
This commit is contained in:
@@ -157,7 +157,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
|
||||
|
||||
MainLog.Instance.Verbose("Creating LandMap");
|
||||
Terrain = new TerrainEngine();
|
||||
Terrain = new TerrainEngine((int)this.RegionInfo.RegionLocX, (int)this.RegionInfo.RegionLocY);
|
||||
|
||||
ScenePresence.LoadAnims();
|
||||
|
||||
|
||||
@@ -87,15 +87,25 @@ namespace OpenSim.Region.Terrain
|
||||
|
||||
int w, h;
|
||||
|
||||
/// <summary>
|
||||
/// Used to determine what offset to use when loading singular heightmaps across multiple sims
|
||||
/// </summary>
|
||||
private int offsetX;
|
||||
private int offsetY;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Generate a new TerrainEngine instance and creates a new heightmap
|
||||
/// </summary>
|
||||
public TerrainEngine()
|
||||
public TerrainEngine(int X, int Y)
|
||||
{
|
||||
w = 256;
|
||||
h = 256;
|
||||
heightmap = new Channel(w, h);
|
||||
|
||||
offsetX = X;
|
||||
offsetY = Y;
|
||||
|
||||
tainted++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user