mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 13:41:31 +00:00
Bug fix with rest timer changes
This commit is contained in:
parent
6ac4154acd
commit
6aba38f664
@ -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);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user