mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-04 12:32:25 +00:00
Revert "Rate limit saving to at most once a second"
This reverts commit f26dce39c33c1eac53a453f3629fa98f1b101473. No easy mode I guess
This commit is contained in:
parent
27f6826fd3
commit
7d62b208ca
@ -157,7 +157,6 @@ Client::Client(EQStreamInterface* ieqs)
|
|||||||
m_ZoneSummonLocation(-2.0f,-2.0f,-2.0f),
|
m_ZoneSummonLocation(-2.0f,-2.0f,-2.0f),
|
||||||
m_AutoAttackPosition(0.0f, 0.0f, 0.0f, 0.0f),
|
m_AutoAttackPosition(0.0f, 0.0f, 0.0f, 0.0f),
|
||||||
m_AutoAttackTargetLocation(0.0f, 0.0f, 0.0f),
|
m_AutoAttackTargetLocation(0.0f, 0.0f, 0.0f),
|
||||||
m_lastsave(-1),
|
|
||||||
last_region_type(RegionTypeUnsupported)
|
last_region_type(RegionTypeUnsupported)
|
||||||
{
|
{
|
||||||
for(int cf=0; cf < _FilterCount; cf++)
|
for(int cf=0; cf < _FilterCount; cf++)
|
||||||
@ -577,10 +576,6 @@ bool Client::Save(uint8 iCommitNow) {
|
|||||||
if(!ClientDataLoaded())
|
if(!ClientDataLoaded())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// saved less than 2 seconds ago, lets just skip for now
|
|
||||||
if ((time(nullptr) - m_lastsave) < 2)
|
|
||||||
return true;
|
|
||||||
|
|
||||||
/* Wrote current basics to PP for saves */
|
/* Wrote current basics to PP for saves */
|
||||||
m_pp.x = m_Position.x;
|
m_pp.x = m_Position.x;
|
||||||
m_pp.y = m_Position.y;
|
m_pp.y = m_Position.y;
|
||||||
@ -670,7 +665,6 @@ bool Client::Save(uint8 iCommitNow) {
|
|||||||
|
|
||||||
database.SaveCharacterData(this->CharacterID(), this->AccountID(), &m_pp, &m_epp); /* Save Character Data */
|
database.SaveCharacterData(this->CharacterID(), this->AccountID(), &m_pp, &m_epp); /* Save Character Data */
|
||||||
|
|
||||||
m_lastsave = time(nullptr);
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1463,9 +1463,6 @@ private:
|
|||||||
Timer helm_toggle_timer;
|
Timer helm_toggle_timer;
|
||||||
Timer light_update_timer;
|
Timer light_update_timer;
|
||||||
|
|
||||||
|
|
||||||
time_t m_lastsave;
|
|
||||||
|
|
||||||
glm::vec3 m_Proximity;
|
glm::vec3 m_Proximity;
|
||||||
|
|
||||||
void BulkSendInventoryItems();
|
void BulkSendInventoryItems();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user