From 85511a642f851100d0d856f4ecbe7fea7a7bb049 Mon Sep 17 00:00:00 2001 From: Loïc Blot Date: Wed, 16 Aug 2017 22:11:45 +0200 Subject: Cleanup various headers to reduce compilation times (#6255) * Cleanup various headers to reduce compilation times --- src/network/connection.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/network/connection.cpp') diff --git a/src/network/connection.cpp b/src/network/connection.cpp index d1ab948db..c93971cac 100644 --- a/src/network/connection.cpp +++ b/src/network/connection.cpp @@ -563,6 +563,20 @@ void IncomingSplitBuffer::removeUnreliableTimedOuts(float dtime, float timeout) } } +/* + ConnectionCommand + */ + +void ConnectionCommand::send(u16 peer_id_, u8 channelnum_, NetworkPacket *pkt, + bool reliable_) +{ + type = CONNCMD_SEND; + peer_id = peer_id_; + channelnum = channelnum_; + data = pkt->oldForgePacket(); + reliable = reliable_; +} + /* Channel */ -- cgit v1.2.3