index dadef20a3acf022e4716002a1c960bb2892eb757..b5bc14de9bf8ce0c67aef4e5dbaf11fba63b3124 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
- * 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
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_GEVENT: MC_RECV_GameEvent(NetMsg);
NET_MSG_FLAG: MC_RECV_FlagEvent(NetMsg);
NET_MSG_GSET: MC_RECV_GameSettings(NetMsg);
+ NET_MSG_FLAGPOS:MC_RECV_FlagPos(NetMsg);
NET_MSG_PLR: MC_RECV_PlayerCreate(NetMsg);
NET_MSG_PLRPOS: MC_RECV_PlayerPos(NetMsg);
NET_MSG_ISPAWN: MC_RECV_ItemSpawn(NetMsg);
NET_MSG_IDEL: MC_RECV_ItemDestroy(NetMsg);
+ NET_MSG_IPOS: MC_RECV_ItemPos(NetMsg);
NET_MSG_PSTATE: MC_RECV_PanelState(NetMsg);
NET_MSG_PTEX: MC_RECV_PanelTexture(NetMsg);
begin
Result := True;
MID := NetMsg.ReadByte();
- g_Console_Add('MID = ' + IntTOStr(MID));
case MID of
NET_MSG_INFO: MH_RECV_Info(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;