From 5afb70b9feb58b17261bc6f04f9c923c0da588e5 Mon Sep 17 00:00:00 2001 From: Melanie Date: Tue, 17 Jan 2012 15:30:52 +0100 Subject: Fix prim calculations so that > 32767 prims are supported --- OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenSim/Region/ClientStack') diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index 873c56c..01e1383 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs @@ -4612,7 +4612,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP if (landData.SimwideArea > 0) { - int simulatorCapacity = (int)((double)(landData.SimwideArea * m_scene.RegionInfo.ObjectCapacity) * m_scene.RegionInfo.RegionSettings.ObjectBonus) / 65536; + int simulatorCapacity = (int)((long)landData.SimwideArea * (long)m_scene.RegionInfo.ObjectCapacity * (long)m_scene.RegionInfo.RegionSettings.ObjectBonus / 65536L); // Never report more than sim total capacity if (simulatorCapacity > m_scene.RegionInfo.ObjectCapacity) simulatorCapacity = m_scene.RegionInfo.ObjectCapacity; -- cgit v1.1