X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/91b203a42eca5cc73fa1674f16ea3054f85327f8..15683eb58c0d154f5dda82def6eccfdb2e3e76d2:/projects/stargazer/user_impl.cpp?ds=sidebyside diff --git a/projects/stargazer/user_impl.cpp b/projects/stargazer/user_impl.cpp index 00063437..7f2d5e0b 100644 --- a/projects/stargazer/user_impl.cpp +++ b/projects/stargazer/user_impl.cpp @@ -674,21 +674,21 @@ bool USER_IMPL::IsInetable() { //STG_LOCKER lock(&mutex, __FILE__, __LINE__); -if (disabled.ConstData() || passive.ConstData()) +if (disabled || passive) return false; if (settings->GetFreeMbAllowInet()) { - if (freeMb.ConstData() >= 0) + if (freeMb >= 0) return true; } if (settings->GetShowFeeInCash()) { - return (cash.ConstData() >= -credit.ConstData()); + return (cash >= -credit); } -return (cash.ConstData() - tariff->GetFee() >= -credit.ConstData()); +return (cash - tariff->GetFee() >= -credit); } //----------------------------------------------------------------------------- string USER_IMPL::GetEnabledDirs() @@ -1281,6 +1281,10 @@ while (it != messages.end()) ++it; } } + else + { + ++it; + } } } //-----------------------------------------------------------------------------