Fix recent minor regression where the default frame time wasn't being set if there was no startup config section.
Caused some regression tests to fail.ghosts
parent
cfc95afc3d
commit
07c6630c1c
|
@ -802,6 +802,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
: this(regInfo, physicsScene)
|
: this(regInfo, physicsScene)
|
||||||
{
|
{
|
||||||
m_config = config;
|
m_config = config;
|
||||||
|
MinFrameTicks = 89;
|
||||||
MinMaintenanceTime = 1;
|
MinMaintenanceTime = 1;
|
||||||
SeeIntoRegion = true;
|
SeeIntoRegion = true;
|
||||||
|
|
||||||
|
@ -1026,8 +1027,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
|
|
||||||
if (startupConfig.Contains("MinFrameTime"))
|
if (startupConfig.Contains("MinFrameTime"))
|
||||||
MinFrameTicks = (int)(startupConfig.GetFloat("MinFrameTime") * 1000);
|
MinFrameTicks = (int)(startupConfig.GetFloat("MinFrameTime") * 1000);
|
||||||
else
|
|
||||||
MinFrameTicks = 89;
|
|
||||||
|
|
||||||
m_update_backup = startupConfig.GetInt( "UpdateStorageEveryNFrames", m_update_backup);
|
m_update_backup = startupConfig.GetInt( "UpdateStorageEveryNFrames", m_update_backup);
|
||||||
m_update_coarse_locations = startupConfig.GetInt( "UpdateCoarseLocationsEveryNFrames", m_update_coarse_locations);
|
m_update_coarse_locations = startupConfig.GetInt( "UpdateCoarseLocationsEveryNFrames", m_update_coarse_locations);
|
||||||
|
|
|
@ -300,7 +300,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC.Tests
|
||||||
public void TestMove()
|
public void TestMove()
|
||||||
{
|
{
|
||||||
TestHelpers.InMethod();
|
TestHelpers.InMethod();
|
||||||
// log4net.Config.XmlConfigurator.Configure();
|
// TestHelpers.EnableLogging();
|
||||||
|
|
||||||
SetUpScene();
|
SetUpScene();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue