minor: Remove some mono compiler warnings in OpenSim.Framework.dll
parent
5c53660a7f
commit
39a0928052
|
@ -218,7 +218,7 @@ namespace OpenSim.Framework
|
||||||
Console.WriteLine ("Looking for updates...");
|
Console.WriteLine ("Looking for updates...");
|
||||||
Repositories.UpdateAllRepositories (ps);
|
Repositories.UpdateAllRepositories (ps);
|
||||||
Console.WriteLine ("Available add-in updates:");
|
Console.WriteLine ("Available add-in updates:");
|
||||||
bool found = false;
|
|
||||||
AddinRepositoryEntry[] entries = Repositories.GetAvailableUpdates();
|
AddinRepositoryEntry[] entries = Repositories.GetAvailableUpdates();
|
||||||
|
|
||||||
foreach (AddinRepositoryEntry entry in entries)
|
foreach (AddinRepositoryEntry entry in entries)
|
||||||
|
@ -541,7 +541,7 @@ namespace OpenSim.Framework
|
||||||
{
|
{
|
||||||
list.AddRange(PluginRegistry.GetAddins());
|
list.AddRange(PluginRegistry.GetAddins());
|
||||||
}
|
}
|
||||||
catch(Exception e)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
Addin[] x = xlist.ToArray(typeof(Addin)) as Addin[];
|
Addin[] x = xlist.ToArray(typeof(Addin)) as Addin[];
|
||||||
return x;
|
return x;
|
||||||
|
|
|
@ -303,12 +303,12 @@ namespace OpenSim.Framework
|
||||||
// Clamp the maximum magnitude of a vector
|
// Clamp the maximum magnitude of a vector
|
||||||
public static Vector3 ClampV(Vector3 x, float max)
|
public static Vector3 ClampV(Vector3 x, float max)
|
||||||
{
|
{
|
||||||
Vector3 ret = x;
|
|
||||||
float lenSq = x.LengthSquared();
|
float lenSq = x.LengthSquared();
|
||||||
if (lenSq > (max * max))
|
if (lenSq > (max * max))
|
||||||
{
|
{
|
||||||
x = x / x.Length() * max;
|
x = x / x.Length() * max;
|
||||||
}
|
}
|
||||||
|
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue