diff --git a/src/game/g_netmsg.pas b/src/game/g_netmsg.pas
index 1eb3683759c40e6a12ab9b30ba1855a50b4c0f18..9b8214ca0f8803ac1f06236ed410bffea5a14b2a 100644 (file)
--- a/src/game/g_netmsg.pas
+++ b/src/game/g_netmsg.pas
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);
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]);
NetOut.Write(Byte(R_BERSERK in FRulez));
NetOut.Write(Frags);
+ NetOut.Write(Assists);
NetOut.Write(Death);
NetOut.Write(CurrWeap);
FRulez := FRulez + [R_BERSERK];
Frags := M.ReadLongInt();
+ Assists := M.ReadLongInt();
Death := M.ReadLongInt();
SetWeapon(M.ReadByte());