mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 07:18:37 +00:00
Process character lockout results in db methods
This commit is contained in:
+3
-9
@@ -9726,16 +9726,10 @@ bool Client::HasExpeditionLockout(
|
||||
|
||||
void Client::LoadAllExpeditionLockouts()
|
||||
{
|
||||
auto results = ExpeditionDatabase::LoadCharacterLockouts(CharacterID());
|
||||
if (results.Success())
|
||||
auto lockouts = ExpeditionDatabase::LoadCharacterLockouts(CharacterID());
|
||||
for (const auto& lockout : lockouts)
|
||||
{
|
||||
for (auto row = results.begin(); row != results.end(); ++row)
|
||||
{
|
||||
auto expire_time = strtoull(row[0], nullptr, 10);
|
||||
auto original_duration = static_cast<uint32_t>(strtoul(row[1], nullptr, 10));
|
||||
ExpeditionLockoutTimer lockout{ row[2], row[3], expire_time, original_duration };
|
||||
AddExpeditionLockout(lockout, false, false);
|
||||
}
|
||||
AddExpeditionLockout(lockout, false, false);
|
||||
}
|
||||
SendExpeditionLockoutTimers();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user