git.stg.codes
/
stg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
22d2f0c
)
Revert the effect of previous commit `cause it has no effect
author
Maxim Mamontov
<faust@gts.dp.ua>
Thu, 21 Apr 2011 13:51:58 +0000
(16:51 +0300)
committer
Maxim Mamontov
<faust@gts.dp.ua>
Thu, 21 Apr 2011 13:51:58 +0000
(16:51 +0300)
projects/stargazer/user_impl.cpp
patch
|
blob
|
history
diff --git
a/projects/stargazer/user_impl.cpp
b/projects/stargazer/user_impl.cpp
index 00063437ec339bc4071c38f1a28f98219f4d1ddb..d89bbe47a796bc9180371b840685a2bb82997e4e 100644
(file)
--- 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__);
{
//STG_LOCKER lock(&mutex, __FILE__, __LINE__);
-if (disabled
.ConstData() || passive.ConstData()
)
+if (disabled
|| passive
)
return false;
if (settings->GetFreeMbAllowInet())
{
return false;
if (settings->GetFreeMbAllowInet())
{
- if (freeMb
.ConstData()
>= 0)
+ if (freeMb >= 0)
return true;
}
if (settings->GetShowFeeInCash())
{
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()
}
//-----------------------------------------------------------------------------
string USER_IMPL::GetEnabledDirs()