X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_netmaster.pas;h=41478f1cb94b74b6c0c8ef0b4b780366cd35fc99;hb=91a5ffe08943e28ecdcf8bb6752f88ff220a4cd9;hp=2e26b3a4911353ed68525980b511e80f984e2445;hpb=416e7ea60867edd8d4a535f507df1624190b02c2;p=d2df-sdl.git diff --git a/src/game/g_netmaster.pas b/src/game/g_netmaster.pas index 2e26b3a..41478f1 100644 --- a/src/game/g_netmaster.pas +++ b/src/game/g_netmaster.pas @@ -130,16 +130,12 @@ var FromSL: Boolean; procedure ProcessLocal(); - var - IPBuf: Array[0..19] of Byte; begin I := Length(SL); SetLength(SL, I + 1); with SL[I] do begin - FillChar(IPBuf, Length(IPBuf), 0); - enet_address_get_host_ip(Addr(SvAddr.host), PChar(Addr(IPBuf)), Length(IPBuf)); - IP := PChar(Addr(IPBuf)); + IP := DecodeIPV4(SvAddr.host); Port := InMsg.ReadWord(); Ping := InMsg.ReadInt64(); Ping := GetTimerMS() - Ping;