diff --git a/Module/BirdsModule/FlockingView.cs b/Module/BirdsModule/FlockingView.cs index fa9539e..021a274 100644 --- a/Module/BirdsModule/FlockingView.cs +++ b/Module/BirdsModule/FlockingView.cs @@ -144,7 +144,7 @@ namespace Flocking } } // 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); } diff --git a/Module/BirdsModule/FlowMap.cs b/Module/BirdsModule/FlowMap.cs index da258b7..464828a 100644 --- a/Module/BirdsModule/FlowMap.cs +++ b/Module/BirdsModule/FlowMap.cs @@ -181,12 +181,12 @@ namespace Flocking } public bool IsWithinObstacle( int x, int y, int z ) { - bool retVal = false; - if (x >= LengthX || y >= LengthY || z >= LengthZ) + bool retVal = false; + if (x >= LengthX || y >= LengthY || z >= LengthZ) { - retVal = true; - } - else if (x < 0 || y < 0 || z < 0) + retVal = true; + } + else if (x < 0 || y < 0 || z < 0) { retVal = true; } else if (m_flowMap[x,y,z] > 50f) {