12
mud.c
12
mud.c
@@ -1553,15 +1553,9 @@ mud_send(struct mud *mud, const void *data, size_t size, unsigned tc)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned k = tc >> 8;
|
const unsigned a = packet[packet_size - 1];
|
||||||
|
const unsigned b = packet[packet_size - 2];
|
||||||
if (!k) {
|
const unsigned k = (a << 8) | b;
|
||||||
const unsigned a = packet[packet_size - 1];
|
|
||||||
const unsigned b = packet[packet_size - 2];
|
|
||||||
k = (a << 8) | b;
|
|
||||||
} else {
|
|
||||||
k--;
|
|
||||||
}
|
|
||||||
|
|
||||||
return mud_send_path(mud, mud_select_path(mud, k),
|
return mud_send_path(mud, mud_select_path(mud, k),
|
||||||
now, packet, (size_t)packet_size, tc & 255, 0);
|
now, packet, (size_t)packet_size, tc & 255, 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user