Explicitly cast afk_timeout to S32 in case we want to build a viewer with broken parts

Cinders 2013-11-15 17:54:35 -07:00
parent c0531d5450
commit 46ccac970a
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 (static_cast<S32>(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();