aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules
diff options
context:
space:
mode:
authorAdam Frisby2009-08-21 13:12:51 +1000
committerAdam Frisby2009-08-21 13:12:51 +1000
commitbce98f9670ae027bbf727a4ba20f52cd17765793 (patch)
treea957add323082e6ca0af896000c9ffa08f3b9e54 /OpenSim/Region/OptionalModules
parent* Protip: Declare publically accessible functions, as public functions. (diff)
downloadopensim-SC_OLD-bce98f9670ae027bbf727a4ba20f52cd17765793.zip
opensim-SC_OLD-bce98f9670ae027bbf727a4ba20f52cd17765793.tar.gz
opensim-SC_OLD-bce98f9670ae027bbf727a4ba20f52cd17765793.tar.bz2
opensim-SC_OLD-bce98f9670ae027bbf727a4ba20f52cd17765793.tar.xz
* Fixing an issue with NPC's and Circuit Codes.
Diffstat (limited to 'OpenSim/Region/OptionalModules')
-rw-r--r--OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs b/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs
index 94349f6..775dc91 100644
--- a/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs
+++ b/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs
@@ -44,6 +44,9 @@ namespace OpenSim.Region.OptionalModules.World.NPC
44 public UUID CreateNPC(string firstname, string lastname,Vector3 position, Scene scene, UUID cloneAppearanceFrom) 44 public UUID CreateNPC(string firstname, string lastname,Vector3 position, Scene scene, UUID cloneAppearanceFrom)
45 { 45 {
46 NPCAvatar npcAvatar = new NPCAvatar(firstname, lastname, position, scene); 46 NPCAvatar npcAvatar = new NPCAvatar(firstname, lastname, position, scene);
47 npcAvatar.CircuitCode = (uint) Util.RandomClass.Next(0, int.MaxValue);
48
49 scene.ClientManager.Add(npcAvatar.CircuitCode, npcAvatar);
47 scene.AddNewClient(npcAvatar); 50 scene.AddNewClient(npcAvatar);
48 51
49 ScenePresence sp; 52 ScenePresence sp;