cosmetics

This commit is contained in:
UbitUmarov
2025-11-25 17:45:06 +00:00
parent 2db1fabd10
commit c71e61dfd6
5 changed files with 49 additions and 45 deletions

View File

@@ -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>

View File

@@ -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;