Fixed a few conflicts with Dan's code (earlier conflict resolution by Dan broke
remote script engine's execution) to make remote script engine execute as it did in the implementation in Country Fair 2010 demo.dsg
parent
bca02499dc
commit
f8ccfaf046
|
@ -414,8 +414,8 @@ namespace OpenSim.Region.CoreModules.RegionSync.RegionSyncModule
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
if (m_server == null || !m_server.Synced)
|
//if (m_server == null || !m_server.Synced)
|
||||||
//if((m_server == null || !m_server.Synced) && (m_sceneToSESyncServer==null || !m_sceneToSESyncServer.Synced))
|
if((m_server == null || !m_server.Synced) && (m_sceneToSESyncServer==null || !m_sceneToSESyncServer.Synced))
|
||||||
return false;
|
return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1644,7 +1644,8 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
|
|
||||||
int tmpPhysicsMS2 = Util.EnvironmentTickCount();
|
int tmpPhysicsMS2 = Util.EnvironmentTickCount();
|
||||||
// Do not simulate physics locally if this is a synced client
|
// Do not simulate physics locally if this is a synced client
|
||||||
if (!IsSyncedClient())
|
//if (!IsSyncedClient())
|
||||||
|
if (IsSyncedServer())
|
||||||
{
|
{
|
||||||
if ((m_frame % m_update_physics == 0) && m_physics_enabled)
|
if ((m_frame % m_update_physics == 0) && m_physics_enabled)
|
||||||
m_sceneGraph.UpdatePreparePhysics();
|
m_sceneGraph.UpdatePreparePhysics();
|
||||||
|
@ -1652,7 +1653,8 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
physicsMS2 = Util.EnvironmentTickCountSubtract(tmpPhysicsMS2);
|
physicsMS2 = Util.EnvironmentTickCountSubtract(tmpPhysicsMS2);
|
||||||
|
|
||||||
// Do not simulate physics locally if this is a synced client
|
// Do not simulate physics locally if this is a synced client
|
||||||
if (!IsSyncedClient())
|
//if (!IsSyncedClient())
|
||||||
|
if (IsSyncedServer())
|
||||||
{
|
{
|
||||||
if (m_frame % m_update_entitymovement == 0)
|
if (m_frame % m_update_entitymovement == 0)
|
||||||
m_sceneGraph.UpdateScenePresenceMovement();
|
m_sceneGraph.UpdateScenePresenceMovement();
|
||||||
|
@ -1660,7 +1662,8 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
|
|
||||||
int tmpPhysicsMS = Util.EnvironmentTickCount();
|
int tmpPhysicsMS = Util.EnvironmentTickCount();
|
||||||
// Do not simulate physics locally if this is a synced client
|
// Do not simulate physics locally if this is a synced client
|
||||||
if (!IsSyncedClient())
|
//if (!IsSyncedClient())
|
||||||
|
if (IsSyncedServer())
|
||||||
{
|
{
|
||||||
if (m_frame % m_update_physics == 0)
|
if (m_frame % m_update_physics == 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue