fixing warnings.

0.6.3-post-fixes
Dr Scofield 2009-02-09 10:40:12 +00:00
parent 07804f6937
commit b1739cbbfd
3 changed files with 36 additions and 36 deletions

View File

@ -146,7 +146,7 @@ namespace OpenSim
m_configSettings.See_into_region_from_neighbor, m_config.Source, m_version);
}
void RunCommand(string module, string[] cp)
new void RunCommand(string module, string[] cp)
{
List<string> cmdparams = new List<string>(cp);
if (cmdparams.Count < 1)

View File

@ -321,32 +321,32 @@ namespace OpenSim
#region Console Commands
private void KickUserCommand(string module, string[] cmdparams)
{
if (cmdparams.Length < 4)
return;
// private void KickUserCommand(string module, string[] cmdparams)
// {
// if (cmdparams.Length < 4)
// return;
IList agents = m_sceneManager.GetCurrentSceneAvatars();
// IList agents = m_sceneManager.GetCurrentSceneAvatars();
foreach (ScenePresence presence in agents)
{
RegionInfo regionInfo = m_sceneManager.GetRegionInfo(presence.RegionHandle);
// foreach (ScenePresence presence in agents)
// {
// RegionInfo regionInfo = m_sceneManager.GetRegionInfo(presence.RegionHandle);
if (presence.Firstname.ToLower().Contains(cmdparams[2].ToLower()) && presence.Lastname.ToLower().Contains(cmdparams[3].ToLower()))
{
m_console.Notice(
String.Format(
"Kicking user: {0,-16}{1,-16}{2,-37} in region: {3,-16}",
presence.Firstname,
presence.Lastname,
presence.UUID,
regionInfo.RegionName));
// if (presence.Firstname.ToLower().Contains(cmdparams[2].ToLower()) && presence.Lastname.ToLower().Contains(cmdparams[3].ToLower()))
// {
// m_console.Notice(
// String.Format(
// "Kicking user: {0,-16}{1,-16}{2,-37} in region: {3,-16}",
// presence.Firstname,
// presence.Lastname,
// presence.UUID,
// regionInfo.RegionName));
presence.Scene.IncomingCloseAgent(presence.UUID);
}
}
m_console.Notice("");
}
// presence.Scene.IncomingCloseAgent(presence.UUID);
// }
// }
// m_console.Notice("");
// }
/// <summary>
/// Run an optional startup list of commands
@ -761,7 +761,7 @@ namespace OpenSim
}
// see BaseOpenSimServer
private void HandleShow(string mod, string[] cmd)
override public void HandleShow(string mod, string[] cmd)
{
List<string> args = new List<string>(cmd);
args.RemoveAt(0);

View File

@ -109,25 +109,25 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
return (float)(Math.PI * degrees / 180);
}
private double FromRadians(float radians)
{
return radians * 180 / Math.PI;
}
// private double FromRadians(float radians)
// {
// return radians * 180 / Math.PI;
// }
private double FromLslFloat(LSL_Types.LSLFloat lslFloat)
{
return lslFloat.value;
}
private LSL_Types.LSLFloat ToLslFloat(double value)
{
return new LSL_Types.LSLFloat(value);
}
// private LSL_Types.LSLFloat ToLslFloat(double value)
// {
// return new LSL_Types.LSLFloat(value);
// }
private Quaternion FromLslQuaternion(LSL_Types.Quaternion lslQuaternion)
{
return new Quaternion((float)lslQuaternion.x, (float)lslQuaternion.y, (float)lslQuaternion.z, (float)lslQuaternion.s);
}
// private Quaternion FromLslQuaternion(LSL_Types.Quaternion lslQuaternion)
// {
// return new Quaternion((float)lslQuaternion.x, (float)lslQuaternion.y, (float)lslQuaternion.z, (float)lslQuaternion.s);
// }
private LSL_Types.Quaternion ToLslQuaternion(Quaternion quaternion)
{