mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 03:08:26 +00:00
-Merc upkeep timers fixed to display properly. They now persist through zones as well as save to the database properly.
-Merc unsuspend timers should now be more reliable across zone shutdown.
This commit is contained in:
+3
-2
@@ -232,6 +232,7 @@ Client::Client(EQStreamInterface* ieqs)
|
||||
dead_timer.Disable();
|
||||
camp_timer.Disable();
|
||||
autosave_timer.Disable();
|
||||
GetMercTimer()->Disable();
|
||||
instalog = false;
|
||||
pLastUpdate = 0;
|
||||
pLastUpdateWZ = 0;
|
||||
@@ -562,8 +563,8 @@ bool Client::Save(uint8 iCommitNow) {
|
||||
if(GetMercInfo().MercTimerRemaining > RuleI(Mercs, UpkeepIntervalMS))
|
||||
GetMercInfo().MercTimerRemaining = RuleI(Mercs, UpkeepIntervalMS);
|
||||
|
||||
if(merc_timer.Enabled()) {
|
||||
GetMercInfo().MercTimerRemaining = merc_timer.GetRemainingTime();
|
||||
if(GetMercTimer()->Enabled()) {
|
||||
GetMercInfo().MercTimerRemaining = GetMercTimer()->GetRemainingTime();
|
||||
}
|
||||
|
||||
if (GetMerc() && !dead) {
|
||||
|
||||
Reference in New Issue
Block a user