mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
cosmetics
This commit is contained in:
@@ -2292,14 +2292,15 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
|
||||
public void SetText(string text, Vector3 color, double alpha)
|
||||
{
|
||||
Color = Color.FromArgb(0xff - (int) (alpha * 0xff),
|
||||
Color newcolor = Color.FromArgb(0xff - (int) (alpha * 0xff),
|
||||
(int) (color.X * 0xff),
|
||||
(int) (color.Y * 0xff),
|
||||
(int) (color.Z * 0xff));
|
||||
Text = text;
|
||||
|
||||
HasGroupChanged = true;
|
||||
m_rootPart.ScheduleFullUpdate();
|
||||
if(Text != text || newcolor!= Color)
|
||||
{
|
||||
HasGroupChanged = true;
|
||||
m_rootPart.ScheduleFullUpdate();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -47,8 +47,9 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
/// </summary>
|
||||
public class TerrainChannel : ITerrainChannel
|
||||
{
|
||||
const string LogHeader = "[TERRAIN CHANNEL]: ";
|
||||
|
||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
private static string LogHeader = "[TERRAIN CHANNEL]: ";
|
||||
|
||||
protected TerrainData m_terrainData;
|
||||
|
||||
@@ -177,12 +178,14 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
|
||||
public int MaxHeight()
|
||||
{
|
||||
float max = 0;
|
||||
float max = float.MinValue;
|
||||
for (int ii = 0; ii < Width; ii++)
|
||||
{
|
||||
for (int jj = 0; jj < Height; jj++)
|
||||
{
|
||||
max = (m_terrainData[ii, jj] > max) ? m_terrainData[ii, jj] : max;
|
||||
float cur = m_terrainData[ii, jj];
|
||||
if(cur > max)
|
||||
max = cur;
|
||||
}
|
||||
}
|
||||
return (int)max + 1;
|
||||
|
||||
Reference in New Issue
Block a user