* Remove warnings, including one which pointed out a bug

0.6.0-stable
Justin Clarke Casey 2008-10-13 20:45:13 +00:00
parent 97f4226666
commit 9d6f043a79
2 changed files with 1 additions and 2 deletions

View File

@ -249,7 +249,7 @@ namespace OpenSim.Region.Environment.Scenes
/// </returns> /// </returns>
protected bool AddSceneObject(SceneObjectGroup sceneObject, bool attachToBackup) protected bool AddSceneObject(SceneObjectGroup sceneObject, bool attachToBackup)
{ {
if (sceneObject == null || sceneObject.RootPart == null || sceneObject.RootPart.UUID == null) if (sceneObject == null || sceneObject.RootPart == null || sceneObject.RootPart.UUID == UUID.Zero)
return false; return false;
sceneObject.ApplyPhysics(m_parentScene.m_physicalPrim); sceneObject.ApplyPhysics(m_parentScene.m_physicalPrim);

View File

@ -277,7 +277,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins
Vector3 ZeroVector = new Vector3(0, 0, 0); Vector3 ZeroVector = new Vector3(0, 0, 0);
bool nameSearch = (ts.name != null && ts.name != ""); bool nameSearch = (ts.name != null && ts.name != "");
SceneObjectGroup group;
foreach (EntityBase ent in Entities) foreach (EntityBase ent in Entities)
{ {