From 86128ba4d40578e3d721a82639b36f76aa55a792 Mon Sep 17 00:00:00 2001 From: Jeff Ames Date: Sat, 29 Mar 2008 04:30:19 +0000 Subject: Fix compiler warnings in BulletXPlugin. --- .../Region/Physics/BulletXPlugin/BulletXPlugin.cs | 36 +++++++++++----------- 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/Physics/BulletXPlugin/BulletXPlugin.cs b/OpenSim/Region/Physics/BulletXPlugin/BulletXPlugin.cs index abbcd7c..6cc7ff4 100644 --- a/OpenSim/Region/Physics/BulletXPlugin/BulletXPlugin.cs +++ b/OpenSim/Region/Physics/BulletXPlugin/BulletXPlugin.cs @@ -253,13 +253,13 @@ namespace OpenSim.Region.Physics.BulletXPlugin relatedScene._characters.TryGetValue(rb, out bxcA); relatedScene._prims.TryGetValue(rb, out bxpA); } - String nameA; - if (bxcA != null) - nameA = bxcA._name; - else if (bxpA != null) - nameA = bxpA._name; - else - nameA = "null"; +// String nameA; +// if (bxcA != null) +// nameA = bxcA._name; +// else if (bxpA != null) +// nameA = bxpA._name; +// else +// nameA = "null"; BulletXCharacter bxcB = null; BulletXPrim bxpB = null; @@ -270,13 +270,13 @@ namespace OpenSim.Region.Physics.BulletXPlugin relatedScene._characters.TryGetValue(rb, out bxcB); relatedScene._prims.TryGetValue(rb, out bxpB); } - String nameB; - if (bxcB != null) - nameB = bxcB._name; - else if (bxpB != null) - nameB = bxpB._name; - else - nameB = "null"; +// String nameB; +// if (bxcB != null) +// nameB = bxcB._name; +// else if (bxpB != null) +// nameB = bxpB._name; +// else +// nameB = "null"; bool needsCollision = base.NeedsCollision(bodyA, bodyB); @@ -1478,8 +1478,8 @@ namespace OpenSim.Region.Physics.BulletXPlugin internal class BulletXPlanet { private PhysicsVector _staticPosition; - private PhysicsVector _staticVelocity; - private AxiomQuaternion _staticOrientation; +// private PhysicsVector _staticVelocity; +// private AxiomQuaternion _staticOrientation; private float _mass; private BulletXScene _parentscene; internal float[] _heightField; @@ -1493,8 +1493,8 @@ namespace OpenSim.Region.Physics.BulletXPlugin internal BulletXPlanet(BulletXScene parent_scene, float[] heightField) { _staticPosition = new PhysicsVector(BulletXScene.MaxXY/2, BulletXScene.MaxXY/2, 0); - _staticVelocity = new PhysicsVector(); - _staticOrientation = AxiomQuaternion.Identity; +// _staticVelocity = new PhysicsVector(); +// _staticOrientation = AxiomQuaternion.Identity; _mass = 0; //No active _parentscene = parent_scene; _heightField = heightField; -- cgit v1.1