diff --git a/src/Components/Modules/News.cpp b/src/Components/Modules/News.cpp index b8b06019..c0ca72dc 100644 --- a/src/Components/Modules/News.cpp +++ b/src/Components/Modules/News.cpp @@ -57,28 +57,21 @@ namespace Components void News::CheckForUpdate() { - std::string caches = Utils::Cache::GetFile("/iw4/caches.xml"); + std::string _client = Utils::Cache::GetFile("/json/client"); - if (!caches.empty()) + if (!_client.empty()) { - std::string str = "()->current.integer = version; - Dvar::Var("cl_updateavailable").get()->current.boolean = (version > REVISION); - } + Dvar::Var("cl_updateversion").get()->current.integer = revision; + Dvar::Var("cl_updateavailable").get()->current.boolean = (revision > REVISION); } } }