mirror of
https://github.com/opensim/opensim.git
synced 2026-08-13 05:05:43 +08:00
Change improperly named isNPC to be IsNPC as a property should be uppercase
This commit is contained in:
@@ -364,7 +364,7 @@ namespace OpenSim.Region.CoreModules.Avatar.AvatarFactory
|
||||
return false;
|
||||
|
||||
// npcs dont have baked cache
|
||||
if (((ScenePresence)sp).isNPC)
|
||||
if (((ScenePresence)sp).IsNPC)
|
||||
return true;
|
||||
|
||||
// uploaded baked textures will be in assets local cache
|
||||
@@ -507,7 +507,7 @@ namespace OpenSim.Region.CoreModules.Avatar.AvatarFactory
|
||||
{
|
||||
int hits = 0;
|
||||
|
||||
if (((ScenePresence)sp).isNPC)
|
||||
if (((ScenePresence)sp).IsNPC)
|
||||
return true;
|
||||
|
||||
lock (m_setAppearanceLock)
|
||||
@@ -701,7 +701,7 @@ namespace OpenSim.Region.CoreModules.Avatar.AvatarFactory
|
||||
|
||||
public int RequestRebake(IScenePresence sp, bool missingTexturesOnly)
|
||||
{
|
||||
if (((ScenePresence)sp).isNPC)
|
||||
if (((ScenePresence)sp).IsNPC)
|
||||
return 0;
|
||||
|
||||
int texturesRebaked = 0;
|
||||
|
||||
@@ -165,7 +165,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Gods
|
||||
UUID agentID, UUID sessionID, UUID token, bool godLike)
|
||||
{
|
||||
ScenePresence sp = m_scene.GetScenePresence(agentID);
|
||||
if(sp == null || sp.IsDeleted || sp.isNPC)
|
||||
if(sp == null || sp.IsDeleted || sp.IsNPC)
|
||||
return;
|
||||
|
||||
if (sessionID != sp.ControllingClient.SessionId)
|
||||
|
||||
@@ -356,7 +356,7 @@ namespace OpenSim.Region.CoreModules.Avatar.UserProfiles
|
||||
return;
|
||||
|
||||
ScenePresence p = FindPresence(targetID);
|
||||
if (p != null && p.isNPC)
|
||||
if (p != null && p.IsNPC)
|
||||
{
|
||||
remoteClient.SendAvatarClassifiedReply(targetID, classifieds);
|
||||
return;
|
||||
@@ -751,7 +751,7 @@ namespace OpenSim.Region.CoreModules.Avatar.UserProfiles
|
||||
Dictionary<UUID, string> picks = new Dictionary<UUID, string>();
|
||||
|
||||
ScenePresence p = FindPresence(targetId);
|
||||
if (p != null && p.isNPC)
|
||||
if (p != null && p.IsNPC)
|
||||
{
|
||||
remoteClient.SendAvatarPicksReply(targetId, picks);
|
||||
return;
|
||||
@@ -1165,7 +1165,7 @@ namespace OpenSim.Region.CoreModules.Avatar.UserProfiles
|
||||
public void NotesUpdate(IClientAPI remoteClient, UUID queryTargetID, string queryNotes)
|
||||
{
|
||||
ScenePresence p = FindPresence(queryTargetID);
|
||||
if (p != null && p.isNPC)
|
||||
if (p != null && p.IsNPC)
|
||||
{
|
||||
remoteClient.SendAgentAlertMessage(
|
||||
"Notes for NPCs not available", false);
|
||||
@@ -1329,7 +1329,7 @@ namespace OpenSim.Region.CoreModules.Avatar.UserProfiles
|
||||
}
|
||||
|
||||
ScenePresence p = FindPresence(avatarID);
|
||||
if (p != null && p.isNPC)
|
||||
if (p != null && p.IsNPC)
|
||||
{
|
||||
remoteClient.SendAvatarProperties(avatarID, ((INPC)(p.ControllingClient)).profileAbout, ((INPC)(p.ControllingClient)).Born,
|
||||
Utils.StringToBytes("Non Player Character (NPC)"), "NPCs have no life", 0x10,
|
||||
|
||||
@@ -65,7 +65,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.GridUser
|
||||
|
||||
public void OnMakeRootAgent(ScenePresence sp)
|
||||
{
|
||||
if (sp.isNPC)
|
||||
if (sp.IsNPC)
|
||||
return;
|
||||
|
||||
if(sp.gotCrossUpdate)
|
||||
|
||||
@@ -68,7 +68,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Presence
|
||||
|
||||
public void OnMakeRootAgent(ScenePresence sp)
|
||||
{
|
||||
if (sp.isNPC)
|
||||
if (sp.IsNPC)
|
||||
return;
|
||||
|
||||
if(sp.gotCrossUpdate)
|
||||
|
||||
@@ -1285,7 +1285,7 @@ namespace OpenSim.Region.CoreModules.World.Land
|
||||
UUID parcelID = land.LandData.GlobalID;
|
||||
m_scene.ForEachScenePresence(delegate(ScenePresence avatar)
|
||||
{
|
||||
if (avatar.IsDeleted || avatar.isNPC)
|
||||
if (avatar.IsDeleted || avatar.IsNPC)
|
||||
return;
|
||||
|
||||
IClientAPI client = avatar.ControllingClient;
|
||||
|
||||
@@ -718,7 +718,7 @@ namespace OpenSim.Region.CoreModules.World.Land
|
||||
if (!m_scene.TryGetScenePresence(avatar, out sp))
|
||||
return true;
|
||||
|
||||
if(sp==null || !sp.isNPC)
|
||||
if(sp==null || !sp.IsNPC)
|
||||
return true;
|
||||
|
||||
INPC npccli = (INPC)sp.ControllingClient;
|
||||
|
||||
Reference in New Issue
Block a user