mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
* Added time dilation property to Scene
* Default Terrain algorithm now produces something slightly less mountainous. * Fixed lolcat
This commit is contained in:
@@ -100,6 +100,8 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
protected float m_timespan = 0.1f;
|
||||
protected DateTime m_lastupdate = DateTime.Now;
|
||||
|
||||
protected float m_timedilation = 1.0f;
|
||||
|
||||
private int m_update_physics = 1;
|
||||
private int m_update_entitymovement = 1;
|
||||
private int m_update_entities = 1;
|
||||
@@ -307,6 +309,8 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
finally
|
||||
{
|
||||
updateLock.ReleaseMutex();
|
||||
|
||||
m_timedilation = m_timespan / (float)SinceLastFrame.TotalSeconds;
|
||||
m_lastupdate = DateTime.Now;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1128,6 +1128,10 @@ namespace OpenSim.Region.Terrain
|
||||
heightmap.HillsSpheres(200, 20, 40, true, true, false);
|
||||
heightmap.Normalise();
|
||||
heightmap *= 60.0; // Raise to 60m
|
||||
heightmap.Clip(0.0, 25.0);
|
||||
heightmap.Pertubation(2.5);
|
||||
heightmap.Smooth(35.0);
|
||||
heightmap.Normalise(0.0, 21.0);
|
||||
}
|
||||
|
||||
tainted++;
|
||||
|
||||
Reference in New Issue
Block a user