diff options
author | Adam Frisby | 2009-08-21 13:12:51 +1000 |
---|---|---|
committer | Adam Frisby | 2009-08-21 13:12:51 +1000 |
commit | bce98f9670ae027bbf727a4ba20f52cd17765793 (patch) | |
tree | a957add323082e6ca0af896000c9ffa08f3b9e54 /OpenSim/Region/OptionalModules/World | |
parent | * Protip: Declare publically accessible functions, as public functions. (diff) | |
download | opensim-SC-bce98f9670ae027bbf727a4ba20f52cd17765793.zip opensim-SC-bce98f9670ae027bbf727a4ba20f52cd17765793.tar.gz opensim-SC-bce98f9670ae027bbf727a4ba20f52cd17765793.tar.bz2 opensim-SC-bce98f9670ae027bbf727a4ba20f52cd17765793.tar.xz |
* Fixing an issue with NPC's and Circuit Codes.
Diffstat (limited to 'OpenSim/Region/OptionalModules/World')
-rw-r--r-- | OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs | 3 |
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; |