index 53e6d8f8725aa5195d4b6851a58cf4f39e05096c..ebd9d1d87552720a3f1206f6d7ad14b4aa56a2b4 100644 (file)
var
MNext: Integer;
MSize: LongWord;
- MHandled: Boolean;
+ MHandled: Boolean = false;
NetMsg: TMsg;
begin
if not NetMsg.Init(P^.data, P^.dataLength, True) then
NetMsg.Seek(MNext);
end;
+ MHandled := not MHandled; //k8: stfu, fpc!
+
enet_packet_destroy(P);
end;
var
MNext: Integer;
MSize: LongWord;
- MHandled: Boolean;
+ MHandled: Boolean = false;
NetMsg: TMsg;
begin
if not NetMsg.Init(P^.data, P^.dataLength, True) then
NetMsg.Seek(MNext);
end;
+ MHandled := not MHandled; //k8: stfu, fpc!
+
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_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;