index 346a5018f2295f2d20871c01ef1a33e0b8901545..ebd9d1d87552720a3f1206f6d7ad14b4aa56a2b4 100644 (file)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
+ * the Free Software Foundation, version 3 of the License ONLY.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
var
MNext: Integer;
MSize: LongWord;
var
MNext: Integer;
MSize: LongWord;
- MHandled: Boolean;
+ MHandled: Boolean = false;
NetMsg: TMsg;
begin
if not NetMsg.Init(P^.data, P^.dataLength, True) then
NetMsg: TMsg;
begin
if not NetMsg.Init(P^.data, P^.dataLength, True) then
NetMsg.Seek(MNext);
end;
NetMsg.Seek(MNext);
end;
+ MHandled := not MHandled; //k8: stfu, fpc!
+
enet_packet_destroy(P);
end;
enet_packet_destroy(P);
end;
var
MNext: Integer;
MSize: LongWord;
var
MNext: Integer;
MSize: LongWord;
- MHandled: Boolean;
+ MHandled: Boolean = false;
NetMsg: TMsg;
begin
if not NetMsg.Init(P^.data, P^.dataLength, True) then
NetMsg: TMsg;
begin
if not NetMsg.Init(P^.data, P^.dataLength, True) then
NetMsg.Seek(MNext);
end;
NetMsg.Seek(MNext);
end;
+ MHandled := not MHandled; //k8: stfu, fpc!
+
enet_packet_destroy(P);
end;
enet_packet_destroy(P);
end;
NET_MSG_RCON_AUTH: MH_RECV_RCONPassword(S, NetMsg);
NET_MSG_RCON_CMD: MH_RECV_RCONCommand(S, NetMsg);
NET_MSG_RCON_AUTH: MH_RECV_RCONPassword(S, NetMsg);
NET_MSG_RCON_CMD: MH_RECV_RCONCommand(S, NetMsg);
- NET_MSG_MAP_REQUEST: MH_RECV_MapRequest(S, NetMsg);
- NET_MSG_RES_REQUEST: MH_RECV_ResRequest(S, NetMsg);
+ //NET_MSG_MAP_REQUEST: MH_RECV_MapRequest(S, NetMsg);
+ //NET_MSG_RES_REQUEST: MH_RECV_ResRequest(S, NetMsg);
NET_MSG_VOTE_EVENT: MH_RECV_Vote(S, NetMsg);
end;
NET_MSG_VOTE_EVENT: MH_RECV_Vote(S, NetMsg);
end;