From 70ecf785bbef10823255068672f05911ed51ff10 Mon Sep 17 00:00:00 2001 From: Learath Date: Wed, 17 Jun 2020 10:32:28 +0300 Subject: [PATCH] Compatible version filter --- src/engine/server/server.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/engine/server/server.cpp b/src/engine/server/server.cpp index ee2579436..ef638f02d 100644 --- a/src/engine/server/server.cpp +++ b/src/engine/server/server.cpp @@ -1949,7 +1949,9 @@ void CServer::CacheServerInfoSixup(CCache *pCache, bool SendClients) } } - Packer.AddString(GameServer()->Version(), 32); + char aVersion[32]; + str_format(aVersion, sizeof(aVersion), "0.7, %s", GameServer()->Version()); + Packer.AddString(aVersion, 32); Packer.AddString(g_Config.m_SvName, 64); Packer.AddString(g_Config.m_SvHostname, 128); Packer.AddString(GetMapName(), 32);