diff options
author | Adam Frisby | 2009-10-02 10:53:21 +1000 |
---|---|---|
committer | Adam Frisby | 2009-10-02 10:53:21 +1000 |
commit | a030e3d61bc0edf1b51abf245cda3d33a5fb091f (patch) | |
tree | af76802f7f2f6336d597dc4a7dcb77fa36e17232 /OpenSim/Region | |
parent | Added messages to assertions in the failing tests, so that we know which ones... (diff) | |
download | opensim-SC_OLD-a030e3d61bc0edf1b51abf245cda3d33a5fb091f.zip opensim-SC_OLD-a030e3d61bc0edf1b51abf245cda3d33a5fb091f.tar.gz opensim-SC_OLD-a030e3d61bc0edf1b51abf245cda3d33a5fb091f.tar.bz2 opensim-SC_OLD-a030e3d61bc0edf1b51abf245cda3d33a5fb091f.tar.xz |
* Attempting to fix a issue with console commands & the estate module. Again.
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs | 56 |
1 files changed, 52 insertions, 4 deletions
diff --git a/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs b/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs index 0d51cf4..4896edf 100644 --- a/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs +++ b/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs | |||
@@ -858,8 +858,30 @@ namespace OpenSim.Region.CoreModules.World.Estate | |||
858 | { | 858 | { |
859 | if (y == -1 || m_scene.RegionInfo.RegionLocY == y) | 859 | if (y == -1 || m_scene.RegionInfo.RegionLocY == y) |
860 | { | 860 | { |
861 | m_log.Debug("[ESTATEMODULE] Setting terrain textures for " + m_scene.RegionInfo.RegionName); | 861 | int corner = int.Parse(num); |
862 | setEstateTerrainBaseTexture(null, int.Parse(num), UUID.Parse(uuid)); | 862 | UUID texture = UUID.Parse(uuid); |
863 | |||
864 | m_log.Debug("[ESTATEMODULE] Setting terrain textures for " + m_scene.RegionInfo.RegionName + | ||
865 | string.Format(" (C#{0} = {1})", corner, texture)); | ||
866 | |||
867 | switch (corner) | ||
868 | { | ||
869 | case 0: | ||
870 | m_scene.RegionInfo.RegionSettings.TerrainTexture1 = texture; | ||
871 | break; | ||
872 | case 1: | ||
873 | m_scene.RegionInfo.RegionSettings.TerrainTexture2 = texture; | ||
874 | break; | ||
875 | case 2: | ||
876 | m_scene.RegionInfo.RegionSettings.TerrainTexture3 = texture; | ||
877 | break; | ||
878 | case 3: | ||
879 | m_scene.RegionInfo.RegionSettings.TerrainTexture4 = texture; | ||
880 | break; | ||
881 | } | ||
882 | m_scene.RegionInfo.RegionSettings.Save(); | ||
883 | sendRegionInfoPacketToAll(); | ||
884 | |||
863 | } | 885 | } |
864 | } | 886 | } |
865 | } | 887 | } |
@@ -876,8 +898,34 @@ namespace OpenSim.Region.CoreModules.World.Estate | |||
876 | { | 898 | { |
877 | if (y == -1 || m_scene.RegionInfo.RegionLocY == y) | 899 | if (y == -1 || m_scene.RegionInfo.RegionLocY == y) |
878 | { | 900 | { |
879 | m_log.Debug("[ESTATEMODULE] Setting terrain heights " + m_scene.RegionInfo.RegionName); | 901 | int corner = int.Parse(num); |
880 | setEstateTerrainTextureHeights(null, int.Parse(num), float.Parse(min), float.Parse(max)); | 902 | float lowValue = float.Parse(min); |
903 | float highValue = float.Parse(max); | ||
904 | |||
905 | m_log.Debug("[ESTATEMODULE] Setting terrain heights " + m_scene.RegionInfo.RegionName + | ||
906 | string.Format(" (C{0}, {1}-{2}", corner, lowValue, highValue)); | ||
907 | |||
908 | switch (corner) | ||
909 | { | ||
910 | case 0: | ||
911 | m_scene.RegionInfo.RegionSettings.Elevation1SW = lowValue; | ||
912 | m_scene.RegionInfo.RegionSettings.Elevation2SW = highValue; | ||
913 | break; | ||
914 | case 1: | ||
915 | m_scene.RegionInfo.RegionSettings.Elevation1NW = lowValue; | ||
916 | m_scene.RegionInfo.RegionSettings.Elevation2NW = highValue; | ||
917 | break; | ||
918 | case 2: | ||
919 | m_scene.RegionInfo.RegionSettings.Elevation1SE = lowValue; | ||
920 | m_scene.RegionInfo.RegionSettings.Elevation2SE = highValue; | ||
921 | break; | ||
922 | case 3: | ||
923 | m_scene.RegionInfo.RegionSettings.Elevation1NE = lowValue; | ||
924 | m_scene.RegionInfo.RegionSettings.Elevation2NE = highValue; | ||
925 | break; | ||
926 | } | ||
927 | m_scene.RegionInfo.RegionSettings.Save(); | ||
928 | sendRegionHandshakeToAll(); | ||
881 | } | 929 | } |
882 | } | 930 | } |
883 | } | 931 | } |