From b4cff03ce7b8327311dc45f6a9ce789e6344f237 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Tue, 14 Feb 2017 20:43:03 +0100 Subject: [PATCH] [ServerList] Disable version filtering for now --- src/Components/Modules/ServerList.cpp | 2 +- src/Components/Modules/ServerList.hpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Components/Modules/ServerList.cpp b/src/Components/Modules/ServerList.cpp index b6859923..e92a4b9c 100644 --- a/src/Components/Modules/ServerList.cpp +++ b/src/Components/Modules/ServerList.cpp @@ -503,7 +503,7 @@ namespace Components if (info.get("gamename") == "IW4" && server.matchType -#ifndef DEBUG +#if !defined(DEBUG) && !defined(VERSION_FILTER) && server.shortversion == SHORTVERSION #endif ) diff --git a/src/Components/Modules/ServerList.hpp b/src/Components/Modules/ServerList.hpp index 2af541ea..21b3f464 100644 --- a/src/Components/Modules/ServerList.hpp +++ b/src/Components/Modules/ServerList.hpp @@ -1,5 +1,8 @@ #pragma once +// This enables version filtering +//#define VERSION_FILTER + namespace Components { class ServerList : public Component