aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorlbsa712008-03-13 20:00:41 +0000
committerlbsa712008-03-13 20:00:41 +0000
commitcb28cc686bb378519a2b271b06436244b8976ab8 (patch)
tree44bf709d24967c9012d8cf74b52e7efd8ac0bb3e /OpenSim
parent* SimpleApp is dead, long live OpenSim.Region.Examples.SimpleModule (diff)
downloadopensim-SC-cb28cc686bb378519a2b271b06436244b8976ab8.zip
opensim-SC-cb28cc686bb378519a2b271b06436244b8976ab8.tar.gz
opensim-SC-cb28cc686bb378519a2b271b06436244b8976ab8.tar.bz2
opensim-SC-cb28cc686bb378519a2b271b06436244b8976ab8.tar.xz
* Added cautionary README.txt
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/Examples/SimpleModule/README.txt9
-rw-r--r--OpenSim/Region/Examples/SimpleModule/RegionModule.cs2
2 files changed, 10 insertions, 1 deletions
diff --git a/OpenSim/Region/Examples/SimpleModule/README.txt b/OpenSim/Region/Examples/SimpleModule/README.txt
new file mode 100644
index 0000000..8314a21
--- /dev/null
+++ b/OpenSim/Region/Examples/SimpleModule/README.txt
@@ -0,0 +1,9 @@
1!!!IMPORTANT NOTE!!!
2
3This code snippet provided as an example of coding functional content with region modules.
4
5As of 13/3 2008 this module actually renders all regions within the instance unusable if enabled by dragging the dll from ./bin to global /bin.
6
7So, use at own peril and in dedicated instance.
8
9Peace.
diff --git a/OpenSim/Region/Examples/SimpleModule/RegionModule.cs b/OpenSim/Region/Examples/SimpleModule/RegionModule.cs
index 6accb8a..37cbef5 100644
--- a/OpenSim/Region/Examples/SimpleModule/RegionModule.cs
+++ b/OpenSim/Region/Examples/SimpleModule/RegionModule.cs
@@ -78,7 +78,7 @@ namespace OpenSim.Region.Examples.SimpleModule
78 78
79 for (int i = 0; i < (objs*objs*objs); i++) 79 for (int i = 0; i < (objs*objs*objs); i++)
80 { 80 {
81 LLVector3 posOffset = new LLVector3((i % objs) * 4, (i % (objs*objs)) / ( objs ) * 4, (i / (objs*objs)) * 4); 81 LLVector3 posOffset = new LLVector3((i % objs) * 4, ((i % (objs*objs)) / ( objs )) * 4, (i / (objs*objs)) * 4);
82 ComplexObject complexObject = 82 ComplexObject complexObject =
83 new ComplexObject(m_scene, regionInfo.RegionHandle, LLUUID.Zero, m_scene.PrimIDAllocate(), 83 new ComplexObject(m_scene, regionInfo.RegionHandle, LLUUID.Zero, m_scene.PrimIDAllocate(),
84 pos + posOffset); 84 pos + posOffset);