mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +00:00
Merge pull request #50 from j883376/master
Fix Auto XTargets not clearing on death
This commit is contained in:
@@ -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, nullptr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void Client::ShowXTargets(Client *c)
|
||||
{
|
||||
if(!c)
|
||||
|
||||
Reference in New Issue
Block a user