X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_netmsg.pas;h=9b8214ca0f8803ac1f06236ed410bffea5a14b2a;hb=019449d4f7627ed119fedc8d69c25805989f8af9;hp=1eb3683759c40e6a12ab9b30ba1855a50b4c0f18;hpb=cdfd51801a9a96afbc0722a0a9edd7e3ed469a16;p=d2df-sdl.git diff --git a/src/game/g_netmsg.pas b/src/game/g_netmsg.pas index 1eb3683..9b8214c 100644 --- a/src/game/g_netmsg.pas +++ b/src/game/g_netmsg.pas @@ -340,8 +340,8 @@ end; procedure MH_MalformedPacket(C: pTNetClient); begin g_Console_Add(_lc[I_NET_MSG] + _lc[I_NET_MSG_HOST_REJECT] + - _lc[I_NET_DISC_PROTOCOL]); - g_Net_Host_Kick(C^.ID, NET_DISC_PROTOCOL); + _lc[I_NET_DISC_BADMSG]); + g_Net_Host_Ban(C, True); end; procedure MH_RECV_Chat(C: pTNetClient; var M: TMsg); @@ -418,9 +418,9 @@ begin Exit; end; - if g_Net_IsHostBanned(C^.Peer^.address.host) then + if g_Net_IsAddressBanned(C^.Peer^.address.host) then begin - if g_Net_IsHostBanned(C^.Peer^.address.host, True) then + if g_Net_IsAddressBanned(C^.Peer^.address.host, True) then begin g_Console_Add(_lc[I_NET_MSG] + _lc[I_NET_MSG_HOST_REJECT] + _lc[I_NET_DISC_BAN]); @@ -1332,6 +1332,7 @@ begin NetOut.Write(Byte(R_BERSERK in FRulez)); NetOut.Write(Frags); + NetOut.Write(Assists); NetOut.Write(Death); NetOut.Write(CurrWeap); @@ -2542,6 +2543,7 @@ begin FRulez := FRulez + [R_BERSERK]; Frags := M.ReadLongInt(); + Assists := M.ReadLongInt(); Death := M.ReadLongInt(); SetWeapon(M.ReadByte());