diff options
author | Homer Horwitz | 2008-12-12 20:01:04 +0000 |
---|---|---|
committer | Homer Horwitz | 2008-12-12 20:01:04 +0000 |
commit | 185ad8edcbd506c6a38f3e922aaa6f6aaf108fb5 (patch) | |
tree | 029429aae6b13cf3100f553d06c2fdd455c33f05 /OpenSim/Region/Examples | |
parent | Replace the throwing of a NonImplementedException in MyNpcCharacter, so that (diff) | |
download | opensim-SC-185ad8edcbd506c6a38f3e922aaa6f6aaf108fb5.zip opensim-SC-185ad8edcbd506c6a38f3e922aaa6f6aaf108fb5.tar.gz opensim-SC-185ad8edcbd506c6a38f3e922aaa6f6aaf108fb5.tar.bz2 opensim-SC-185ad8edcbd506c6a38f3e922aaa6f6aaf108fb5.tar.xz |
Add missing scene reference. Fixes a NRE. SimpleModule now works again (sort of).
Diffstat (limited to 'OpenSim/Region/Examples')
-rw-r--r-- | OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs b/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs index d80f621..5a5d0e2 100644 --- a/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs +++ b/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs | |||
@@ -250,7 +250,7 @@ namespace OpenSim.Region.Examples.SimpleModule | |||
250 | m_scene.EventManager.OnFrame += Update; | 250 | m_scene.EventManager.OnFrame += Update; |
251 | } | 251 | } |
252 | 252 | ||
253 | private Vector3 startPos = new Vector3(128, 128, 2); | 253 | private Vector3 startPos = new Vector3(128, 128, 30); |
254 | 254 | ||
255 | public virtual Vector3 StartPos | 255 | public virtual Vector3 StartPos |
256 | { | 256 | { |
@@ -732,6 +732,7 @@ namespace OpenSim.Region.Examples.SimpleModule | |||
732 | args.Message = "Hey You! Get out of my Home. This is my Region"; | 732 | args.Message = "Hey You! Get out of my Home. This is my Region"; |
733 | args.Channel = 0; | 733 | args.Channel = 0; |
734 | args.From = FirstName + " " + LastName; | 734 | args.From = FirstName + " " + LastName; |
735 | args.Scene = m_scene; | ||
735 | args.Position = new Vector3(128, 128, 26); | 736 | args.Position = new Vector3(128, 128, 26); |
736 | args.Sender = this; | 737 | args.Sender = this; |
737 | args.Type = ChatTypeEnum.Shout; | 738 | args.Type = ChatTypeEnum.Shout; |