mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 02:05:34 +08:00
* Added SSL Support to HttpListener
* Added SSL Option to User Server to allow logins to be done via SSL. * Added sane handling for when Remote Admin Plugin configuration is not found * Added some performance boosts to an area of libTerrain which was highlighted in profiling.
This commit is contained in:
@@ -143,15 +143,22 @@ namespace libTerrain
|
||||
|
||||
public double Get(int x, int y)
|
||||
{
|
||||
if (x >= w)
|
||||
x = w - 1;
|
||||
if (y >= h)
|
||||
y = h - 1;
|
||||
if (x < 0)
|
||||
x = 0;
|
||||
if (y < 0)
|
||||
y = 0;
|
||||
return map[x, y];
|
||||
try
|
||||
{
|
||||
return map[x, y];
|
||||
}
|
||||
catch (IndexOutOfRangeException)
|
||||
{
|
||||
if (x >= w)
|
||||
x = w - 1;
|
||||
if (y >= h)
|
||||
y = h - 1;
|
||||
if (x < 0)
|
||||
x = 0;
|
||||
if (y < 0)
|
||||
y = 0;
|
||||
return map[x, y];
|
||||
}
|
||||
}
|
||||
|
||||
public void SetWrap(int x, int y, double val)
|
||||
|
||||
Reference in New Issue
Block a user