mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-14 07:21:48 +00:00
Remove dz check in expedition invite reply
Characters can no longer be re-invited while inside a dz, these checks aren't necessary
This commit is contained in:
parent
5a826add92
commit
3e373210c5
@ -842,10 +842,8 @@ void Expedition::DzInviteResponse(Client* add_client, bool accepted, const std::
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool add_immediately = m_dynamiczone.IsCurrentZoneDzInstance();
|
|
||||||
|
|
||||||
ExpeditionDatabase::InsertCharacterLockouts(
|
ExpeditionDatabase::InsertCharacterLockouts(
|
||||||
add_client->CharacterID(), pending_lockouts, false, !add_immediately);
|
add_client->CharacterID(), pending_lockouts, false, true);
|
||||||
|
|
||||||
if (was_swap_invite)
|
if (was_swap_invite)
|
||||||
{
|
{
|
||||||
@ -855,11 +853,6 @@ void Expedition::DzInviteResponse(Client* add_client, bool accepted, const std::
|
|||||||
{
|
{
|
||||||
AddMember(add_client->GetName(), add_client->CharacterID());
|
AddMember(add_client->GetName(), add_client->CharacterID());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_dynamiczone.IsCurrentZoneDzInstance())
|
|
||||||
{
|
|
||||||
SetMemberStatus(add_client, ExpeditionMemberStatus::InDynamicZone);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -455,7 +455,7 @@ void ExpeditionDatabase::InsertCharacterLockouts(
|
|||||||
uint32_t character_id, const std::vector<ExpeditionLockoutTimer>& lockouts,
|
uint32_t character_id, const std::vector<ExpeditionLockoutTimer>& lockouts,
|
||||||
bool replace_timer, bool is_pending)
|
bool replace_timer, bool is_pending)
|
||||||
{
|
{
|
||||||
LogExpeditionsDetail("Inserting character [{}] lockouts", character_id);
|
LogExpeditionsDetail("Inserting [{}] lockouts for character [{}]", lockouts.size(), character_id);
|
||||||
|
|
||||||
std::string insert_values;
|
std::string insert_values;
|
||||||
for (const auto& lockout : lockouts)
|
for (const auto& lockout : lockouts)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user