From bee8823d9d97039b533e7d12495dea8c51ab2074 Mon Sep 17 00:00:00 2001 From: Jak Daniels Date: Mon, 1 Jun 2015 11:53:46 +0100 Subject: [PATCH] Fix Windows/Unix line endings and increse logging when named prim cannot be found. --- Module/BirdsModule/FlockingModel.cs | 12 ++++++------ Module/BirdsModule/FlockingView.cs | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Module/BirdsModule/FlockingModel.cs b/Module/BirdsModule/FlockingModel.cs index 84158d2..f13dff1 100644 --- a/Module/BirdsModule/FlockingModel.cs +++ b/Module/BirdsModule/FlockingModel.cs @@ -50,7 +50,7 @@ namespace Flocking set { //if( value < m_flock.Count ) { // m_flock.RemoveRange( 0, m_flock.Count - value ); - //} else + //} else m_flock = new List(); while( value > m_flock.Count ) { AddBird(m_name + m_flock.Count); @@ -89,27 +89,27 @@ namespace Flocking } public float MaxSpeed { - get {return m_maxSpeed;} + get {return m_maxSpeed;} set { m_maxSpeed = value; } } public float MaxForce { - get {return m_maxForce;} + get {return m_maxForce;} set { m_maxForce = value; } } public float NeighbourDistance { - get {return m_neighbourDistance;} + get {return m_neighbourDistance;} set { m_neighbourDistance = value; } } public float DesiredSeparation { - get {return m_desiredSeparation;} + get {return m_desiredSeparation;} set { m_desiredSeparation = value; } } public float Tolerance { - get {return m_tolerance;} + get {return m_tolerance;} set { m_tolerance = value; } } diff --git a/Module/BirdsModule/FlockingView.cs b/Module/BirdsModule/FlockingView.cs index 4ca30f8..fa9539e 100644 --- a/Module/BirdsModule/FlockingView.cs +++ b/Module/BirdsModule/FlockingView.cs @@ -143,9 +143,9 @@ namespace Flocking break; } } - // can't find it so make a default one - if (retVal == null) { + if (retVal == null) { + m_log.InfoFormat("[{0}]: Prim named {1} was not found in region {2}. Making default wooden sphere.", m_name, name, m_scene.RegionInfo.RegionName); retVal = MakeDefaultPrim (name); }