afk_timeout is not a function...

Tonya Souther 2013-11-15 00:24:56 -06:00
parent 6fbb0cc872
commit 7ef5f2eb7d
1 changed files with 1 additions and 1 deletions

View File

@ -542,7 +542,7 @@ void idle_afk_check()
// [/RLVa:KB]
// <FS:CR> Explicit conversions just cos.
//if (afk_timeout && (current_idle > afk_timeout) && ! gAgent.getAFK())
if (afk_timeout() && (current_idle > static_cast<F32>(afk_timeout)) && ! gAgent.getAFK())
if (afk_timeout && (current_idle > static_cast<F32>(afk_timeout)) && ! gAgent.getAFK())
{
LL_INFOS("IdleAway") << "Idle more than " << afk_timeout << " seconds: automatically changing to Away status" << LL_ENDL;
gAgent.setAFK();