mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-12 08:02:25 +00:00
Other task stuff in zone is using time not our timer
This commit is contained in:
parent
f7c7f5646e
commit
2a637a031b
@ -373,7 +373,7 @@ int ClientListEntry::GetTaskLockoutTimeLeft(int id) const
|
|||||||
[id](const TaskTimer &a) { return a.ID == id; });
|
[id](const TaskTimer &a) { return a.ID == id; });
|
||||||
|
|
||||||
if (it != m_task_replay_timers.end())
|
if (it != m_task_replay_timers.end())
|
||||||
return it->expires - Timer::GetCurrentTime();
|
return it->expires - time(nullptr);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -133,7 +133,7 @@ void SharedTaskManager::HandleTaskRequest(ServerPacket *pack)
|
|||||||
|
|
||||||
// check our lock out timer
|
// check our lock out timer
|
||||||
int expires = cle->GetTaskLockoutExpire(task_id);
|
int expires = cle->GetTaskLockoutExpire(task_id);
|
||||||
if ((expires - Timer::GetCurrentTime()) >= 0) {
|
if ((expires - time(nullptr)) >= 0) {
|
||||||
// failure TODO: appropriate message, we need to send the timestamp here
|
// failure TODO: appropriate message, we need to send the timestamp here
|
||||||
auto pack = new ServerPacket(ServerOP_TaskReject, leader_name.size() + 1 + 8);
|
auto pack = new ServerPacket(ServerOP_TaskReject, leader_name.size() + 1 + 8);
|
||||||
pack->WriteUInt32(0); // string ID or just generic fail message
|
pack->WriteUInt32(0); // string ID or just generic fail message
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user