Bug fix with rest timer changes

This commit is contained in:
Michael Cook (mackal) 2018-07-15 00:27:51 -04:00
parent 6ac4154acd
commit 6aba38f664

View File

@ -4678,7 +4678,7 @@ void Client::UpdateRestTimer(uint32 new_timer)
if (m_pp.RestTimer < new_timer) // our timer needs to be updated, don't need to update client here if (m_pp.RestTimer < new_timer) // our timer needs to be updated, don't need to update client here
m_pp.RestTimer = new_timer; m_pp.RestTimer = new_timer;
} else { // if we're not aggro, we need to check if current timer needs updating } else { // if we're not aggro, we need to check if current timer needs updating
if (rest_timer.GetRemainingTime() < new_timer) { if (rest_timer.GetRemainingTime() / 1000 < new_timer) {
rest_timer.Start(new_timer); rest_timer.Start(new_timer);
if (ClientVersion() >= EQEmu::versions::ClientVersion::SoF) { if (ClientVersion() >= EQEmu::versions::ClientVersion::SoF) {
auto outapp = new EQApplicationPacket(OP_RestState, 5); auto outapp = new EQApplicationPacket(OP_RestState, 5);