I think this should be `if (m_autoScrollCondition && g_info.GetBoolValue(m_autoScrollCondition))` ?

(You want to scroll if the condition is true, right?)