mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
simplify combatmodule npc kill check
This commit is contained in:
@@ -117,9 +117,11 @@ namespace OpenSim.Region.CoreModules.Avatar.Combat.CombatModule
|
||||
// string killingAvatarMessage;
|
||||
|
||||
// check to see if it is an NPC and just remove it
|
||||
INPCModule NPCmodule = deadAvatar.Scene.RequestModuleInterface<INPCModule>();
|
||||
if (NPCmodule != null && NPCmodule.DeleteNPC(deadAvatar.UUID, deadAvatar.Scene))
|
||||
if(deadAvatar.IsNPC)
|
||||
{
|
||||
INPCModule NPCmodule = deadAvatar.Scene.RequestModuleInterface<INPCModule>();
|
||||
if (NPCmodule != null)
|
||||
NPCmodule.DeleteNPC(deadAvatar.UUID, deadAvatar.Scene);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -501,8 +501,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
|
||||
/// <returns>boolean</returns>
|
||||
LSL_Integer osRegexIsMatch(string input, string pattern);
|
||||
|
||||
LSL_String osRequestURL(LSL_List options);
|
||||
LSL_String osRequestSecureURL(LSL_List options);
|
||||
LSL_Key osRequestURL(LSL_List options);
|
||||
LSL_Key osRequestSecureURL(LSL_List options);
|
||||
void osCollisionSound(string impact_sound, double impact_volume);
|
||||
|
||||
void osVolumeDetect(int detect);
|
||||
|
||||
Reference in New Issue
Block a user