DEADSOFTWARE

game: added commands for randomized powerups respawn
[d2df-sdl.git] / src / game / g_netmsg.pas
index 1eb3683759c40e6a12ab9b30ba1855a50b4c0f18..9b8214ca0f8803ac1f06236ed410bffea5a14b2a 100644 (file)
@@ -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());