mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
Replace NetworkPacket pointers to references
This commit is contained in:
@@ -626,12 +626,9 @@ void ClientInterface::UpdatePlayerList()
|
||||
}
|
||||
|
||||
void ClientInterface::send(u16 peer_id, u8 channelnum,
|
||||
NetworkPacket* pkt, bool reliable, bool deletepkt)
|
||||
NetworkPacket* pkt, bool reliable)
|
||||
{
|
||||
m_con->Send(peer_id, channelnum, pkt, reliable);
|
||||
|
||||
if (deletepkt)
|
||||
delete pkt;
|
||||
}
|
||||
|
||||
void ClientInterface::sendToAll(u16 channelnum,
|
||||
@@ -647,8 +644,6 @@ void ClientInterface::sendToAll(u16 channelnum,
|
||||
m_con->Send(client->peer_id, channelnum, pkt, reliable);
|
||||
}
|
||||
}
|
||||
|
||||
delete pkt;
|
||||
}
|
||||
|
||||
RemoteClient* ClientInterface::getClientNoEx(u16 peer_id, ClientState state_min)
|
||||
|
Reference in New Issue
Block a user