mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
* Fixing an issue with NPC's and Circuit Codes.
This commit is contained in:
@@ -44,6 +44,9 @@ namespace OpenSim.Region.OptionalModules.World.NPC
|
||||
public UUID CreateNPC(string firstname, string lastname,Vector3 position, Scene scene, UUID cloneAppearanceFrom)
|
||||
{
|
||||
NPCAvatar npcAvatar = new NPCAvatar(firstname, lastname, position, scene);
|
||||
npcAvatar.CircuitCode = (uint) Util.RandomClass.Next(0, int.MaxValue);
|
||||
|
||||
scene.ClientManager.Add(npcAvatar.CircuitCode, npcAvatar);
|
||||
scene.AddNewClient(npcAvatar);
|
||||
|
||||
ScenePresence sp;
|
||||
|
||||
Reference in New Issue
Block a user