From d6f74eb6549cf7a7d54464d0bedd6bdef3477787 Mon Sep 17 00:00:00 2001 From: def Date: Thu, 3 Sep 2020 12:32:13 +0200 Subject: [PATCH] Don't update news when something was only removed --- src/engine/client/client.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/engine/client/client.cpp b/src/engine/client/client.cpp index 881551a7c..b4771328e 100644 --- a/src/engine/client/client.cpp +++ b/src/engine/client/client.cpp @@ -2441,7 +2441,8 @@ void CClient::LoadDDNetInfo() { const char *pNewsString = json_string_get(pNews); - if(m_aNews[0] && str_comp(m_aNews, pNewsString)) + // Only switch to news page if something new was added to the news + if(m_aNews[0] && str_find(m_aNews, pNewsString) == nullptr) g_Config.m_UiPage = CMenus::PAGE_NEWS; str_copy(m_aNews, pNewsString, sizeof(m_aNews));