mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 20:55:43 +08:00
replace Util.Clamp<T>()
This commit is contained in:
@@ -152,7 +152,7 @@ namespace OpenSim.Region.CoreModules.World.Archiver
|
||||
return;
|
||||
}
|
||||
//pass this in as degrees now, convert to radians later during actual work phase
|
||||
rotation = Util.Clamp<float>(rotation, -359f, 359f);
|
||||
rotation = Math.Clamp(rotation, -359f, 359f);
|
||||
});
|
||||
options.Add("rotation-center=", delegate(string v)
|
||||
{
|
||||
|
||||
@@ -232,9 +232,9 @@ namespace OpenSim.Region.CoreModules.World.Warp3DMap
|
||||
detailTexture[t].UnlockBits(bmdata);
|
||||
detailTexture[t].Dispose();
|
||||
|
||||
mapColorsRed[t] = (byte)Util.Clamp(cR / npixeis, 0 , 255);
|
||||
mapColorsGreen[t] = (byte)Util.Clamp(cG / npixeis, 0 , 255);
|
||||
mapColorsBlue[t] = (byte)Util.Clamp(cB / npixeis, 0 , 255);
|
||||
mapColorsRed[t] = (byte)Math.Clamp(cR / npixeis, 0 , 255);
|
||||
mapColorsGreen[t] = (byte)Math.Clamp(cG / npixeis, 0 , 255);
|
||||
mapColorsBlue[t] = (byte)Math.Clamp(cB / npixeis, 0 , 255);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user