mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
Formatting cleanup.
This commit is contained in:
@@ -231,7 +231,7 @@ namespace Flotsam.RegionModules.AssetCache
|
||||
|
||||
private void UpdateMemoryCache(string key, AssetBase asset)
|
||||
{
|
||||
if( m_MemoryCacheEnabled )
|
||||
if (m_MemoryCacheEnabled)
|
||||
{
|
||||
if (m_MemoryExpiration > TimeSpan.Zero)
|
||||
{
|
||||
@@ -405,7 +405,7 @@ namespace Flotsam.RegionModules.AssetCache
|
||||
File.Delete(filename);
|
||||
}
|
||||
|
||||
if( m_MemoryCacheEnabled )
|
||||
if (m_MemoryCacheEnabled)
|
||||
m_MemoryCache.Remove(id);
|
||||
}
|
||||
catch (Exception e)
|
||||
@@ -424,7 +424,7 @@ namespace Flotsam.RegionModules.AssetCache
|
||||
Directory.Delete(dir);
|
||||
}
|
||||
|
||||
if( m_MemoryCacheEnabled )
|
||||
if (m_MemoryCacheEnabled)
|
||||
m_MemoryCache.Clear();
|
||||
}
|
||||
|
||||
|
||||
@@ -116,7 +116,7 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage
|
||||
{
|
||||
byte dialog = im.dialog;
|
||||
|
||||
if ( dialog != (byte)InstantMessageDialog.MessageFromAgent
|
||||
if (dialog != (byte)InstantMessageDialog.MessageFromAgent
|
||||
&& dialog != (byte)InstantMessageDialog.StartTyping
|
||||
&& dialog != (byte)InstantMessageDialog.StopTyping
|
||||
&& dialog != (byte)InstantMessageDialog.MessageFromObject)
|
||||
|
||||
@@ -219,7 +219,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Transfer
|
||||
else
|
||||
{
|
||||
if (m_TransferModule != null)
|
||||
m_TransferModule.SendInstantMessage(im, delegate(bool success) {} );
|
||||
m_TransferModule.SendInstantMessage(im, delegate(bool success) {});
|
||||
}
|
||||
}
|
||||
else if (im.dialog == (byte) InstantMessageDialog.InventoryAccepted)
|
||||
@@ -233,7 +233,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Transfer
|
||||
else
|
||||
{
|
||||
if (m_TransferModule != null)
|
||||
m_TransferModule.SendInstantMessage(im, delegate(bool success) {} );
|
||||
m_TransferModule.SendInstantMessage(im, delegate(bool success) {});
|
||||
}
|
||||
}
|
||||
else if (im.dialog == (byte) InstantMessageDialog.InventoryDeclined)
|
||||
@@ -300,7 +300,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Transfer
|
||||
else
|
||||
{
|
||||
if (m_TransferModule != null)
|
||||
m_TransferModule.SendInstantMessage(im, delegate(bool success) {} );
|
||||
m_TransferModule.SendInstantMessage(im, delegate(bool success) {});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -890,8 +890,8 @@ namespace OpenSim.Region.CoreModules.InterGrid
|
||||
|
||||
responseMap["sim_host"] = OSD.FromString(rezRespSim_host);
|
||||
responseMap["sim_port"] = OSD.FromInteger(rrPort);
|
||||
responseMap["region_x"] = OSD.FromInteger(rrX );
|
||||
responseMap["region_y"] = OSD.FromInteger(rrY );
|
||||
responseMap["region_x"] = OSD.FromInteger(rrX);
|
||||
responseMap["region_y"] = OSD.FromInteger(rrY);
|
||||
responseMap["region_id"] = OSD.FromUUID(rrRID);
|
||||
responseMap["sim_access"] = OSD.FromString(rrAccess);
|
||||
|
||||
|
||||
@@ -511,7 +511,7 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
|
||||
if (z_sort.ContainsKey(sortedlocalIds[s]))
|
||||
{
|
||||
DrawStruct rectDrawStruct = z_sort[sortedlocalIds[s]];
|
||||
for (int r = 0; r < rectDrawStruct.trns.Length; r++ )
|
||||
for (int r = 0; r < rectDrawStruct.trns.Length; r++)
|
||||
{
|
||||
g.FillPolygon(rectDrawStruct.brush,rectDrawStruct.trns[r].pts);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user