From 19a51ab18134eb8448cc5f57a2121ce2f8644ac4 Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Thu, 21 Apr 2011 16:51:58 +0300 Subject: [PATCH] Revert the effect of previous commit `cause it has no effect --- projects/stargazer/user_impl.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/projects/stargazer/user_impl.cpp b/projects/stargazer/user_impl.cpp index 00063437..d89bbe47 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() -- 2.44.2