diff options
author | Justin Clark-Casey (justincc) | 2011-03-31 22:47:18 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-03-31 22:47:18 +0100 |
commit | efd0c003a3baf3c8d1abd1bab422ae5bb015ab87 (patch) | |
tree | 426336c545ca7a86e93e4e7fff7e06c19c06bad6 /OpenSim/Region | |
parent | remove some mono compiler warnings (diff) | |
download | opensim-SC_OLD-efd0c003a3baf3c8d1abd1bab422ae5bb015ab87.zip opensim-SC_OLD-efd0c003a3baf3c8d1abd1bab422ae5bb015ab87.tar.gz opensim-SC_OLD-efd0c003a3baf3c8d1abd1bab422ae5bb015ab87.tar.bz2 opensim-SC_OLD-efd0c003a3baf3c8d1abd1bab422ae5bb015ab87.tar.xz |
Put in temporary logging message to find out if scene objects are requesting land objects for co-ordinates outside the region
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs index 52e3718..fac2574 100644 --- a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs +++ b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs | |||
@@ -762,13 +762,14 @@ namespace OpenSim.Region.CoreModules.World.Land | |||
762 | { | 762 | { |
763 | try | 763 | try |
764 | { | 764 | { |
765 | //if (m_landList.ContainsKey(m_landIDList[x / 4, y / 4])) | 765 | return m_landList[m_landIDList[x / 4, y / 4]]; |
766 | return m_landList[m_landIDList[x / 4, y / 4]]; | ||
767 | //else | ||
768 | // return null; | ||
769 | } | 766 | } |
770 | catch (IndexOutOfRangeException) | 767 | catch (IndexOutOfRangeException) |
771 | { | 768 | { |
769 | m_log.WarnFormat( | ||
770 | "[LAND MANAGEMENT MODULE]: Tried to retrieve land object from out of bounds co-ordinate ({0},{1}) in {2}", | ||
771 | x, y, m_scene.RegionInfo.RegionName); | ||
772 | |||
772 | return null; | 773 | return null; |
773 | } | 774 | } |
774 | } | 775 | } |