Fix Auto XTargets not clearing on death

This commit is contained in:
j883376
2013-05-05 06:47:53 -04:00
parent e1c2657b11
commit e2fd78b510
3 changed files with 18 additions and 0 deletions
+16
View File
@@ -6990,6 +6990,22 @@ void Client::RemoveGroupXTargets()
}
}
void Client::RemoveAutoXTargets()
{
if(!XTargettingAvailable())
return;
for(int i = 0; i < GetMaxXTargets(); ++i)
{
if(XTargets[i].Type == Auto)
{
XTargets[i].ID = 0;
XTargets[i].Name[0] = 0;
SendXTargetPacket(i, NULL);
}
}
}
void Client::ShowXTargets(Client *c)
{
if(!c)