mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
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.
This commit is contained in:
@@ -802,6 +802,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
: this(regInfo, physicsScene)
|
||||
{
|
||||
m_config = config;
|
||||
MinFrameTicks = 89;
|
||||
MinMaintenanceTime = 1;
|
||||
SeeIntoRegion = true;
|
||||
|
||||
@@ -1026,8 +1027,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
|
||||
if (startupConfig.Contains("MinFrameTime"))
|
||||
MinFrameTicks = (int)(startupConfig.GetFloat("MinFrameTime") * 1000);
|
||||
else
|
||||
MinFrameTicks = 89;
|
||||
|
||||
m_update_backup = startupConfig.GetInt( "UpdateStorageEveryNFrames", m_update_backup);
|
||||
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()
|
||||
{
|
||||
TestHelpers.InMethod();
|
||||
// log4net.Config.XmlConfigurator.Configure();
|
||||
// TestHelpers.EnableLogging();
|
||||
|
||||
SetUpScene();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user