remove unreachable branch

This commit is contained in:
Tr0n 2024-04-09 16:53:47 +02:00
parent 8360d6939f
commit bb52a57ffc
No known key found for this signature in database

View File

@ -862,25 +862,6 @@ void CHARACTER::EncodeInsertPacket(LPENTITY entity)
addPacket.dwLevel = GetLevel(); addPacket.dwLevel = GetLevel();
} }
//TODO: what is this doing here?
if (false)
{
LPCHARACTER ch = (LPCHARACTER) entity;
if (GetEmpire() == ch->GetEmpire() || ch->GetGMLevel() > GM_PLAYER || m_bCharType == CHAR_TYPE_NPC)
{
goto show_all_info;
}
else
{
memset(addPacket.name, 0, CHARACTER_NAME_MAX_LEN);
addPacket.dwGuildID = 0;
addPacket.sAlignment = 0;
}
}
else
{
show_all_info:
strlcpy(addPacket.name, GetName(), sizeof(addPacket.name)); strlcpy(addPacket.name, GetName(), sizeof(addPacket.name));
if (GetGuild() != NULL) if (GetGuild() != NULL)
@ -893,7 +874,6 @@ void CHARACTER::EncodeInsertPacket(LPENTITY entity)
} }
addPacket.sAlignment = m_iAlignment / 10; addPacket.sAlignment = m_iAlignment / 10;
}
d->Packet(&addPacket, sizeof(TPacketGCCharacterAdditionalInfo)); d->Packet(&addPacket, sizeof(TPacketGCCharacterAdditionalInfo));
} }