1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Remove unused ConnectionCommand::sendToAll function. NetworkPacket::oldForgePacket returns Buffer instead of SharedBuffer and is used in ConnectionCommand instead of Connection::Send

This remove the NetworkPacket buffer => SharedBuffer => Buffer copy. Now NetworkPacket => Buffer
This commit is contained in:
Loic Blot 2015-03-22 12:18:16 +01:00
parent 761b127060
commit 61f2d0ca34
4 changed files with 5 additions and 12 deletions

View file

@ -2924,7 +2924,7 @@ void Connection::Send(u16 peer_id, u8 channelnum,
ConnectionCommand c;
c.send(peer_id, channelnum, pkt->oldForgePacket(), reliable);
c.send(peer_id, channelnum, pkt, reliable);
putCommand(c);
}