fixing warnings.
parent
07804f6937
commit
b1739cbbfd
|
@ -146,7 +146,7 @@ namespace OpenSim
|
||||||
m_configSettings.See_into_region_from_neighbor, m_config.Source, m_version);
|
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);
|
List<string> cmdparams = new List<string>(cp);
|
||||||
if (cmdparams.Count < 1)
|
if (cmdparams.Count < 1)
|
||||||
|
|
|
@ -321,32 +321,32 @@ namespace OpenSim
|
||||||
|
|
||||||
#region Console Commands
|
#region Console Commands
|
||||||
|
|
||||||
private void KickUserCommand(string module, string[] cmdparams)
|
// private void KickUserCommand(string module, string[] cmdparams)
|
||||||
{
|
// {
|
||||||
if (cmdparams.Length < 4)
|
// if (cmdparams.Length < 4)
|
||||||
return;
|
// return;
|
||||||
|
|
||||||
IList agents = m_sceneManager.GetCurrentSceneAvatars();
|
// IList agents = m_sceneManager.GetCurrentSceneAvatars();
|
||||||
|
|
||||||
foreach (ScenePresence presence in agents)
|
// foreach (ScenePresence presence in agents)
|
||||||
{
|
// {
|
||||||
RegionInfo regionInfo = m_sceneManager.GetRegionInfo(presence.RegionHandle);
|
// RegionInfo regionInfo = m_sceneManager.GetRegionInfo(presence.RegionHandle);
|
||||||
|
|
||||||
if (presence.Firstname.ToLower().Contains(cmdparams[2].ToLower()) && presence.Lastname.ToLower().Contains(cmdparams[3].ToLower()))
|
// if (presence.Firstname.ToLower().Contains(cmdparams[2].ToLower()) && presence.Lastname.ToLower().Contains(cmdparams[3].ToLower()))
|
||||||
{
|
// {
|
||||||
m_console.Notice(
|
// m_console.Notice(
|
||||||
String.Format(
|
// String.Format(
|
||||||
"Kicking user: {0,-16}{1,-16}{2,-37} in region: {3,-16}",
|
// "Kicking user: {0,-16}{1,-16}{2,-37} in region: {3,-16}",
|
||||||
presence.Firstname,
|
// presence.Firstname,
|
||||||
presence.Lastname,
|
// presence.Lastname,
|
||||||
presence.UUID,
|
// presence.UUID,
|
||||||
regionInfo.RegionName));
|
// regionInfo.RegionName));
|
||||||
|
|
||||||
presence.Scene.IncomingCloseAgent(presence.UUID);
|
// presence.Scene.IncomingCloseAgent(presence.UUID);
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
m_console.Notice("");
|
// m_console.Notice("");
|
||||||
}
|
// }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Run an optional startup list of commands
|
/// Run an optional startup list of commands
|
||||||
|
@ -761,7 +761,7 @@ namespace OpenSim
|
||||||
}
|
}
|
||||||
|
|
||||||
// see BaseOpenSimServer
|
// see BaseOpenSimServer
|
||||||
private void HandleShow(string mod, string[] cmd)
|
override public void HandleShow(string mod, string[] cmd)
|
||||||
{
|
{
|
||||||
List<string> args = new List<string>(cmd);
|
List<string> args = new List<string>(cmd);
|
||||||
args.RemoveAt(0);
|
args.RemoveAt(0);
|
||||||
|
|
|
@ -109,25 +109,25 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
|
||||||
return (float)(Math.PI * degrees / 180);
|
return (float)(Math.PI * degrees / 180);
|
||||||
}
|
}
|
||||||
|
|
||||||
private double FromRadians(float radians)
|
// private double FromRadians(float radians)
|
||||||
{
|
// {
|
||||||
return radians * 180 / Math.PI;
|
// return radians * 180 / Math.PI;
|
||||||
}
|
// }
|
||||||
|
|
||||||
private double FromLslFloat(LSL_Types.LSLFloat lslFloat)
|
private double FromLslFloat(LSL_Types.LSLFloat lslFloat)
|
||||||
{
|
{
|
||||||
return lslFloat.value;
|
return lslFloat.value;
|
||||||
}
|
}
|
||||||
|
|
||||||
private LSL_Types.LSLFloat ToLslFloat(double value)
|
// private LSL_Types.LSLFloat ToLslFloat(double value)
|
||||||
{
|
// {
|
||||||
return new LSL_Types.LSLFloat(value);
|
// return new LSL_Types.LSLFloat(value);
|
||||||
}
|
// }
|
||||||
|
|
||||||
private Quaternion FromLslQuaternion(LSL_Types.Quaternion lslQuaternion)
|
// private Quaternion FromLslQuaternion(LSL_Types.Quaternion lslQuaternion)
|
||||||
{
|
// {
|
||||||
return new Quaternion((float)lslQuaternion.x, (float)lslQuaternion.y, (float)lslQuaternion.z, (float)lslQuaternion.s);
|
// return new Quaternion((float)lslQuaternion.x, (float)lslQuaternion.y, (float)lslQuaternion.z, (float)lslQuaternion.s);
|
||||||
}
|
// }
|
||||||
|
|
||||||
private LSL_Types.Quaternion ToLslQuaternion(Quaternion quaternion)
|
private LSL_Types.Quaternion ToLslQuaternion(Quaternion quaternion)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue