aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-10-03 14:18:17 +0000
committerJustin Clarke Casey2008-10-03 14:18:17 +0000
commit8c55f3eaa671f22012a567138b6ee55b4c3e4941 (patch)
treed4c4ebb5b13a235b5609ef035bd7ac3870e44c7c /OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs
parentPrevent attachments to be persisted in the destination region when the (diff)
downloadopensim-SC_OLD-8c55f3eaa671f22012a567138b6ee55b4c3e4941.zip
opensim-SC_OLD-8c55f3eaa671f22012a567138b6ee55b4c3e4941.tar.gz
opensim-SC_OLD-8c55f3eaa671f22012a567138b6ee55b4c3e4941.tar.bz2
opensim-SC_OLD-8c55f3eaa671f22012a567138b6ee55b4c3e4941.tar.xz
* minor: remove warnings (the code cleaners strike again)
Diffstat (limited to 'OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs')
-rw-r--r--OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs b/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs
index 81c789a..39ade56 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs
@@ -413,10 +413,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
413 } 413 }
414 } 414 }
415 415
416
417 private static int ScaleThrottle(int value, int curmax, int newmax) 416 private static int ScaleThrottle(int value, int curmax, int newmax)
418 { 417 {
419 return (value / curmax) * newmax; 418 return (int)((value / (float)curmax) * newmax);
420 } 419 }
421 420
422 public byte[] GetThrottlesPacked(float multiplier) 421 public byte[] GetThrottlesPacked(float multiplier)