mirror of
https://github.com/Moto/OpenSim-DTL-NSL-Currency-2020.git
synced 2026-08-14 00:48:00 +00:00
26 lines
1.6 KiB
Diff
26 lines
1.6 KiB
Diff
---------------------------------------------------------------------
|
|
--- DTLNSLMoneyModule.cs.ori 2020-01-16 11:40:31.320753823 +0100
|
|
+++ DTLNSLMoneyModule.cs 2020-01-16 11:39:54.717394571 +0100
|
|
@@ -1638,8 +1638,10 @@
|
|
avatarType = (int)AvatarType.NPC_AVATAR;
|
|
}
|
|
//
|
|
- if ((agent.teleportFlags & (uint)Constants.TeleportFlags.ViaHGLogin)!=0 || String.IsNullOrEmpty(userName)) {
|
|
- avatarType = (int)AvatarType.HG_AVATAR;
|
|
+ if (!isNpc) {
|
|
+ if ((agent.teleportFlags & (uint)Constants.TeleportFlags.ViaHGLogin)!=0 || String.IsNullOrEmpty(userName)) {
|
|
+ avatarType = (int)AvatarType.HG_AVATAR;
|
|
+ }
|
|
}
|
|
}
|
|
if (String.IsNullOrEmpty(userName)) {
|
|
@@ -1648,7 +1650,7 @@
|
|
|
|
//
|
|
avatarClass = avatarType;
|
|
- if (avatarType==(int)AvatarType.NPC_AVATAR) return false;
|
|
+ if (avatarType==(int)AvatarType.NPC_AVATAR) return true;
|
|
if (avatarType==(int)AvatarType.HG_AVATAR) avatarClass = m_hg_avatarClass;
|
|
|
|
//
|
|
---------------------------------------------------------------------
|