mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 17:26:30 +00:00
Repaired IsBot function to be more preformant. Now works on standard performance machine
This commit is contained in:
+5
-5
@@ -1247,13 +1247,13 @@ void Raid::SendBulkRaid(Client *to)
|
|||||||
{
|
{
|
||||||
if(!to)
|
if(!to)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
//if (IsRaidMemberBot(to))
|
if (members[GetPlayerIndex(to)].IsBot)
|
||||||
// return;
|
return;
|
||||||
|
|
||||||
for(int x = 0; x < MAX_RAID_MEMBERS; x++)
|
for(int x = 0; x < MAX_RAID_MEMBERS; x++)
|
||||||
{
|
{
|
||||||
if(members[x].member && !members[x].IsBot && strlen(members[x].membername) > 0 && (strcmp(members[x].membername, to->GetName()) != 0)) //don't send ourself
|
if(members[x].member && strlen(members[x].membername) > 0 && (strcmp(members[x].membername, to->GetName()) != 0)) //don't send ourself
|
||||||
{
|
{
|
||||||
SendRaidAdd(members[x].membername, to);
|
SendRaidAdd(members[x].membername, to);
|
||||||
}
|
}
|
||||||
@@ -1446,7 +1446,7 @@ void Raid::SendRaidUnlockTo(Client *c)
|
|||||||
|
|
||||||
void Raid::SendGroupDisband(Client *to)
|
void Raid::SendGroupDisband(Client *to)
|
||||||
{
|
{
|
||||||
if(!to || members[GetPlayerIndex(to)].IsBot)
|
if(!to)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
auto outapp = new EQApplicationPacket(OP_GroupUpdate, sizeof(GroupUpdate_Struct));
|
auto outapp = new EQApplicationPacket(OP_GroupUpdate, sizeof(GroupUpdate_Struct));
|
||||||
|
|||||||
Reference in New Issue
Block a user