DEADSOFTWARE

Netmaster: Additional check for server name in ping response
authorStas'M <x86corez@gmail.com>
Sat, 14 Mar 2020 20:40:40 +0000 (23:40 +0300)
committerStas'M <x86corez@gmail.com>
Sat, 14 Mar 2020 20:40:40 +0000 (23:40 +0300)
src/game/g_netmaster.pas

index 391d7729cf405f7e38ba25324f95318487e76af2..8827515a57df2511acd331f678278cac7fe96e6b 100644 (file)
@@ -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;