mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-04-09 17:26:58 +00:00
Update dGame/dComponents/PropertyManagementComponent.cpp
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -900,6 +900,10 @@ void PropertyManagementComponent::Update(float deltaTime) {
|
|||||||
// Check for day rollover
|
// Check for day rollover
|
||||||
const auto currentDate = GeneralUtils::GetCurrentUTCDate();
|
const auto currentDate = GeneralUtils::GetCurrentUTCDate();
|
||||||
if (currentDate != m_CurrentDate) {
|
if (currentDate != m_CurrentDate) {
|
||||||
|
if (m_ReputationDirty) {
|
||||||
|
LOG_DEBUG("Saving dirty reputation data before daily rollover for property %llu", static_cast<unsigned long long>(propertyId));
|
||||||
|
SaveReputation();
|
||||||
|
}
|
||||||
m_CurrentDate = currentDate;
|
m_CurrentDate = currentDate;
|
||||||
m_PlayerActivity.clear();
|
m_PlayerActivity.clear();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user