mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
a few typos
This commit is contained in:
@@ -14,7 +14,7 @@ namespace OSHttpServer
|
||||
/// </summary>
|
||||
public class HttpRequest : IHttpRequest
|
||||
{
|
||||
private const int MAXCONTENTLENGHT = 250 * 1024 * 1024;
|
||||
private const int MAXCONTENTLENGTH = 250 * 1024 * 1024;
|
||||
/// <summary>
|
||||
/// Chars used to split an URL path into multiple parts.
|
||||
/// </summary>
|
||||
@@ -341,7 +341,7 @@ namespace OSHttpServer
|
||||
case "content-length":
|
||||
if (!int.TryParse(value, out int t))
|
||||
throw new BadRequestException("Invalid content length.");
|
||||
if (t > MAXCONTENTLENGHT)
|
||||
if (t > MAXCONTENTLENGTH)
|
||||
throw new OSHttpServer.Exceptions.HttpException(HttpStatusCode.RequestEntityTooLarge,"Request Entity Too Large");
|
||||
ContentLength = t;
|
||||
break;
|
||||
|
||||
@@ -2723,10 +2723,10 @@ namespace OpenSim.Framework
|
||||
}
|
||||
}
|
||||
|
||||
public static unsafe int osUTF8Getbytes(char* srcarray, int srclenght, byte* dstarray, int maxdstlen, bool NullTerm = true)
|
||||
public static unsafe int osUTF8Getbytes(char* srcarray, int srclength, byte* dstarray, int maxdstlen, bool NullTerm = true)
|
||||
{
|
||||
int dstlen = NullTerm ? maxdstlen - 1 : maxdstlen;
|
||||
int srclen = srclenght >= dstlen ? dstlen : srclenght;
|
||||
int srclen = srclength >= dstlen ? dstlen : srclength;
|
||||
|
||||
char c;
|
||||
char* src = srcarray;
|
||||
|
||||
@@ -1650,7 +1650,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
//finish this packet
|
||||
bitpack.PackBitsFromByte(END_OF_PATCHES);
|
||||
|
||||
// fix the datablock lenght
|
||||
// fix the datablock length
|
||||
datasize = bitpack.BytePos - 9;
|
||||
data[8] = (byte)datasize;
|
||||
data[9] = (byte)(datasize >> 8);
|
||||
|
||||
@@ -4847,13 +4847,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
/// </summary>
|
||||
/// <param name="Mass">total mass of linkset</param>
|
||||
/// <param name="radius">radius of the cylinder</param>
|
||||
/// <param name="lenght">lenght of the cylinder</param>
|
||||
/// <param name="length">length of the cylinder</param>
|
||||
/// <param name="centerOfMass">location of center of mass relative to root prim in local coords</param>
|
||||
/// <param name="lslrot">rotation of the cylinder, and so inertia, relative to local axis</param>
|
||||
/// <remarks>
|
||||
/// cylinder axis aligned with Z axis. For other orientations provide the rotation.
|
||||
/// </remarks>
|
||||
public void osSetInertiaAsCylinder(LSL_Float mass, LSL_Float radius, LSL_Float lenght, LSL_Vector centerOfMass, LSL_Rotation lslrot)
|
||||
public void osSetInertiaAsCylinder(LSL_Float mass, LSL_Float radius, LSL_Float length, LSL_Vector centerOfMass, LSL_Rotation lslrot)
|
||||
{
|
||||
CheckThreatLevel();
|
||||
|
||||
@@ -4872,7 +4872,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
float r = (float)radius;
|
||||
r *= r;
|
||||
Inertia.Z = 0.5f * m * r;
|
||||
float t = (float)lenght;
|
||||
float t = (float)length;
|
||||
t *= t;
|
||||
t += 3.0f * r;
|
||||
t *= 8.333333e-2f * m;
|
||||
|
||||
@@ -1212,9 +1212,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
||||
m_OSSL_Functions.osSetInertiaAsSphere(mass, radius, centerOfMass);
|
||||
}
|
||||
|
||||
public void osSetInertiaAsCylinder(LSL_Float mass, LSL_Float radius, LSL_Float lenght, vector centerOfMass,rotation lslrot)
|
||||
public void osSetInertiaAsCylinder(LSL_Float mass, LSL_Float radius, LSL_Float length, vector centerOfMass,rotation lslrot)
|
||||
{
|
||||
m_OSSL_Functions.osSetInertiaAsCylinder( mass, radius, lenght, centerOfMass, lslrot);
|
||||
m_OSSL_Functions.osSetInertiaAsCylinder( mass, radius, length, centerOfMass, lslrot);
|
||||
}
|
||||
|
||||
public void osClearInertia()
|
||||
|
||||
Reference in New Issue
Block a user