--- a/src/Network/Target.cc Mon Jan 26 23:03:47 2009 +0200
+++ b/src/Network/Target.cc Mon Jan 26 23:26:44 2009 +0200
@@ -4,21 +4,12 @@
#include <cassert>
void NetworkTarget::send_raw (const NetworkPacketBuffer &pkt, bool reliable) {
- // currently this is the same as send_pkt
+ // just send
send_pkt(pkt, reliable);
}
-void NetworkTarget::send (NetworkChannelID channel_id, const NetworkPacketBuffer &pkt, bool reliable) {
- assert(channel_id > 0);
-
- // add our header
- NetworkPacket pkt2;
-
- // XXX: not using NetworkSession::write_packet_header
- pkt2.write_uint16(channel_id);
- pkt2.write_packet(pkt);
-
- // send
- send_pkt(pkt2, reliable);
+void NetworkTarget::send (const NetworkChannelPacket &pkt, bool reliable) {
+ // just send
+ send_pkt(pkt, reliable);
}