mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-28 17:42:17 +00:00
Fixed an issue where Mercenaries were causing several DB queries per second while suspended.
This commit is contained in:
1 parent
5266d7b25c
commit
966acb25b3
3 files changed
+7
-8
No files matched your search
+3
-4
@@ -5299,7 +5299,8 @@ void Client::CheckMercSuspendTimer() {
|
||||
|
||||
if(GetMercInfo().SuspendedTime != 0)
|
||||
{
|
||||
if(time(nullptr) >= GetMercInfo().SuspendedTime)
|
||||
//if(time(nullptr) >= GetMercInfo().SuspendedTime)
|
||||
if (p_timers.Expired(&database, pTimerMercSuspend, false))
|
||||
{
|
||||
GetMercInfo().SuspendedTime = 0;
|
||||
SendMercResponsePackets(0);
|
||||
@@ -5399,11 +5400,9 @@ void Client::SpawnMercOnZone() {
|
||||
}
|
||||
// Send Mercenary Status/Timer packet
|
||||
SendMercTimer(GetMerc());
|
||||
//SendMercPersonalInfo();
|
||||
CheckMercSuspendTimer();
|
||||
|
||||
if (MERC_DEBUG > 0)
|
||||
Message(7, "Mercenary Debug: SpawnMercOnZone Suspended Merc.");
|
||||
Message(7, "Mercenary Debug: SpawnMercOnZone Suspended Merc.");
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user