From 1493f7349ff60ff4477d40910c6632d6749cb186 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Tue, 11 Nov 2008 17:48:36 +0000 Subject: * Minor typing fixes in AssetCache - now uses base types for nearly everything. * Code Cleanliness Fixes in LLClientView * Using field instead of local variable for handlerUpdatePrimGroupRotation (if you notice any new oddities with prim group rotation after this patch, please mantis) --- OpenSim/Framework/Communications/Cache/AssetCache.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'OpenSim/Framework/Communications/Cache') diff --git a/OpenSim/Framework/Communications/Cache/AssetCache.cs b/OpenSim/Framework/Communications/Cache/AssetCache.cs index d988032..fe25eca 100644 --- a/OpenSim/Framework/Communications/Cache/AssetCache.cs +++ b/OpenSim/Framework/Communications/Cache/AssetCache.cs @@ -193,6 +193,7 @@ namespace OpenSim.Framework.Communications.Cache /// /// /// + /// /// A callback invoked when the asset has either been found or not found. /// If the asset was found this is called with the asset UUID and the asset data /// If the asset was not found this is still called with the asset UUID but with a null asset data reference @@ -260,7 +261,7 @@ namespace OpenSim.Framework.Communications.Cache { // I'm not going over 3 seconds since this will be blocking processing of all the other inbound // packets from the client. - int pollPeriod = 200; + const int pollPeriod = 200; int maxPolls = 15; AssetBase asset; @@ -528,18 +529,18 @@ namespace OpenSim.Framework.Communications.Cache AssetRequestToClient req2 = null; for (int i = 0; i < num; i++) { - req = (AssetRequest)AssetRequests[i]; + req = AssetRequests[i]; if (req2 == null) { req2 = new AssetRequestToClient(); } // Trying to limit memory usage by only creating AssetRequestToClient if needed //req2 = new AssetRequestToClient(); - req2.AssetInf = (AssetBase)req.AssetInf; + req2.AssetInf = req.AssetInf; req2.AssetRequestSource = req.AssetRequestSource; req2.DataPointer = req.DataPointer; req2.DiscardLevel = req.DiscardLevel; - req2.ImageInfo = (AssetBase)req.ImageInfo; + req2.ImageInfo = req.ImageInfo; req2.IsTextureRequest = req.IsTextureRequest; req2.NumPackets = req.NumPackets; req2.PacketCounter = req.PacketCounter; -- cgit v1.1