From a78f3861cff615c3679e1f4a80403e48106100b6 Mon Sep 17 00:00:00 2001
From: Stas'M <x86corez@gmail.com>
Date: Sat, 14 Mar 2020 23:40:40 +0300
Subject: [PATCH] Netmaster: Additional check for server name in ping response

---
 src/game/g_netmaster.pas | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/game/g_netmaster.pas b/src/game/g_netmaster.pas
index 391d772..8827515 100644
--- a/src/game/g_netmaster.pas
+++ b/src/game/g_netmaster.pas
@@ -1574,7 +1574,8 @@ begin
       for I := Low(SL) to High(SL) do
         if (SL[I].PingAddr.host = SvAddr.host) and
            (SL[I].PingAddr.port = SvAddr.port) and
-           (SL[I].Port = tmpsv.Port) then
+           (SL[I].Port = tmpsv.Port) and
+           (SL[I].Name = tmpsv.Name) then
         begin
           tmpsv.IP := SL[I].IP;
           SL[I] := tmpsv;
-- 
2.29.2