X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/641204dfbdb9fc870cdd2e7f9e3169a44693e7bf..81087d4ae038fe0d793ee56e14120cd216ea3a7f:/projects/stargazer/user.h?ds=inline diff --git a/projects/stargazer/user.h b/projects/stargazer/user.h index 7a9896bf..3631d900 100644 --- a/projects/stargazer/user.h +++ b/projects/stargazer/user.h @@ -144,9 +144,7 @@ public: void ResetPassiveTime() { passiveTime = 0; } void SetPassiveTimeAsNewUser(); - void ResetDetailStat(); - int SwapDetailStat(); - int WriteDetailStat(); + int WriteDetailStat(bool hard = false); const TARIFF * GetTariff() const { return tariff; } void ResetNextTariff() { nextTariff = ""; } @@ -235,10 +233,8 @@ private: const TARIFFS * tariffs; const TARIFF * tariff; - map traffStatInternal[2]; - map * traffStat; - map * traffStatToWrite; - int traffStatInUse; + TRAFF_STAT traffStat; + std::list > traffStatQueue; const SETTINGS * settings;