DEADSOFTWARE

Fix incorrect user message if no servers online but master is alive
[d2df-sdl.git] / src / game / g_netmaster.pas
index 391d7729cf405f7e38ba25324f95318487e76af2..ef68c00dcd59d745fcafb772c7f9240d4405bfeb 100644 (file)
@@ -1474,6 +1474,7 @@ begin
       exit;
     end;
 
+    Result := True;
     slMOTD := '';
     {
     slUrgent := '';
@@ -1574,7 +1575,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;